Page 2 of 2

Re: strange ubrupt end in my code

Posted: Mon Sep 01, 2008 8:46 pm
by Alphamonkey
SOLVED
OMG, that is the funniest thing I have seen posted lately. Grin

You do understand that when mysql_fetch_array() has already fetched the last row from the result set it will return a false value the next time it executes which the or die() will use to terminate program execution?

Remove the or die() from the end of the mysql_fetch_array(). The purpose of the while() statement is to loop until the mysql_fetch_array() returns a false value.
in case anyone was curious

Re: strange ubrupt end in my code

Posted: Tue Sep 02, 2008 7:54 am
by starram
Hey, First remove those div tags and if problem still persist then replace the while condition whit this.

while($row = mysql_fetch_assoc($result))