Re: Unexpected ";"

From: Date: Thu, 19 Feb 2004 17:44:22 +0000
Subject: Re: Unexpected ";"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178267@lists.php.net to get a copy of this message
should be if (($pic_num + 1) <= $thumb_num) { Paul, with PHP the Parsers error is usally above the line number that's actually reffered to. Paul Furman wrote:
I don't see what's wrong with this if statement: while ... and ... { if (($pic_num + 1) <= $thumb_num {
     $tab = ((($pics * $page) - 1) + $pic_num); }
Error unexpected ";" on the last line there. I added some extra () to make sure I had everything together & not two statements or something odd like that. The while loop above works with the if statement removed.
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar.

« previous php.general (#178267) next »