You also forgot to close your "if statement". while ... and ... { if (($pic_num + 1) <= $thumb_num) { $tab = ((($pics * $page) - 1) + $pic_num); }
alex > -----Original Message----- > From: Paul Furman [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 19, 2004 11:33 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Unexpected ";" > > 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. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php ****************************************************************** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily represent the view of the company. If you are not the intended recipient of this e-mail you may not copy, forward, disclose, or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender. ******************************************************************