Page 1 of 1

FYI: While problem

Posted: Tue Sep 13, 2005 3:52 pm
by denz
Hi all

Just to let you know a silly problem I've just encountered which took me a good while to fix and I didn't see it for a while at all - infact i only saw it here when I was composing a post on here! (shows what a help this site is!)

anyway - here is the code, if it helps someone then my work here is done....


BTW, this code gave no errors, it was just missing the content...

Code: Select all

while ($row = mysql_fetch_assoc($qry));
	{
                echo $row['content_here'];
         }

Just incase you missed it, it was that little blighter of a semicolon on the while line

hope this helps someone!

:lol: :lol:

Posted: Tue Sep 13, 2005 9:32 pm
by m3mn0n
I remember making that mistake during my first few days with PHP. heh

Posted: Tue Sep 13, 2005 9:35 pm
by John Cartwright
I missed it at first glance :roll:
although thats not the coding format I use, so I forgive myself

Posted: Tue Sep 13, 2005 11:06 pm
by s.dot
heh, there's a mistake I don't think I've ever made :-D go me