Re: Parse error (a bit OT)

From: Date: Thu, 21 Feb 2002 12:36:30 +0000
Subject: Re: Parse error (a bit OT)
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-17122@lists.php.net to get a copy of this message
Hi there :) I think you just might be missing two curly braces. Like below. if ($prev_week) { while(date("W",mktime(0,0,0,$m,$d,$Y))==$week) { ...blababla... } } if ($next_week) { while(date("W",mktime(0,0,0,$m,$d,$Y))==$week) { ...blablabla... } } Hope this helps, Joe :) "Markus Lervik" <markus.lervik@vaasa.fi> wrote in message news:1014290431.26064.10.camel@hal9000... > Hello, > > Can anyone tell me what's wrong with line 68? I get a parse error on > line 68 trying to run this. The strange thing is that it doesn't > complain about line 54. Either I'm blind, stupid, or there's somehing > very wrong here. I've checked above line 67 too, but there doesn't seem > to be any missing brackets or semicolons... > > Cheers, > Markus > > > -------------------- > > > 53: if ($prev_week) { > 54: while(date("W",mktime(0,0,0,$m,$d,$Y))==$week) { > ...blababla... > } > > 67: if ($next_week) { > 68: while(date("W",mktime(0,0,0,$m,$d,$Y))==$week) { > ...blablabla... > } > > > > > -- > Markus Lervik > Linux-administrator with a kungfoo grip > Vaasa City Library - Regional Library > markus.lervik@vaasa.fi > +358-6-325 3589 / +358-40-832 6709 >

« previous php.db (#17122) next »