Thanks folks, it was the missing paren on the if statement.
if (...{...}
if (...){...}

I'm using PSPad as an editor with syntax highlighting and it works pretty well but I don't always <g>.


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.

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to