Re: Unexpected ";"

From: Date: Thu, 19 Feb 2004 17:39:29 +0000
Subject: Re: Unexpected ";"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178271@lists.php.net to get a copy of this message
You're missing a right bracket within the if statement. Paul Furman wrote:
*********************************************** This Email Has Been Virus Swept *********************************************** 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.
-- ---------------------- www.curvedvision.com ---------------------- This communication is confidential to the intended recipient(s). If you are not that person you are not permitted to make use of the information and you are requested to notify the sender immediately of its receipt then destroy the copy in your possession. Any views or opinions expressed are those of the originator and may not represent those of Advanced System Architectures Ltd. *** This Email Has Been Virus Checked ***

« previous php.general (#178271) next »