* Thus wrote Steven Kallstrom ([EMAIL PROTECTED]):
> Hello all...
> 
> I'm embarrassed by this one...  I think it should work but it isn't...
>       
> $query = 'SELECT * FROM cities';
> $result = mysql_query($query);
>       
> while ($row = mysql_fetch_row($result)) {
>
> getting this error:
> 
> *Warning*: mysql_fetch_row(): supplied argument is not a valid MySQL 
> result resource in...

Hmm.. I thought I had replied to this.. anyway, check the output of
mysql_error() after your mysql_query(), mysql_select_db() and
mysql_connect() to see who is cause the query to fail.  The sql
syntax appears to be correct.

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

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

Reply via email to