Re: strange ubrupt end in my code
Posted: Mon Sep 01, 2008 8:46 pm
SOLVED
in case anyone was curiousOMG, 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.