Re: Code problem - need help.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> When I view on my web page, the $number value comes out fine, but the $name
> comes out as "Resource ID #x" where x is some number. Currently is says
> "Resource ID #6". I know the SQL syntax is right, I have tested it. But what
> is wrong here?

The mysql_query command returns a result set, not the 'value' of the
query. Look up the mysql_fetch_array
[http://us2.php.net/manual/en/function.mysql-fetch-array.php] and
mysql_fetch_row commands. There are also several variants of these that
return slightly different formats.

Chase


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux