FYI: While problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
denz
Forum Newbie
Posts: 18
Joined: Fri Jun 24, 2005 4:18 pm

FYI: While problem

Post 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:
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

I remember making that mistake during my first few days with PHP. heh
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

I missed it at first glance :roll:
although thats not the coding format I use, so I forgive myself
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

heh, there's a mistake I don't think I've ever made :-D go me
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply