I confess i didn't read the original post ... 
You're absolutely right ...

Humberto Silva
World Editing
Portugal
 


-----Original Message-----
From: John W. Holmes [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 23 de Janeiro de 2004 16:03
To: Humberto Silva
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] Drop down box NOT populated


From: "Humberto Silva" <[EMAIL PROTECTED]>

> Instead of:
> > $row = mysql_fetch_array($sql)
>
> Use:
> $row = mysql_fetch_assoc($sql)

While I'm in the habit of doing that, using fetch_array() isn't going to
cause any problems with regard to the original post. Which one you use
is really a matter of personal opinion and rarely affects the code.

---John Holmes...

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

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

Reply via email to