I'm working with sql on php and I get Resource id #...
,
For e.g. Resource id #21
,
What does it mean? and where can I find a table with all the meaning of these ids?
Thanks
I'm working with sql on php and I get Resource id #...
,
For e.g. Resource id #21
,
What does it mean? and where can I find a table with all the meaning of these ids?
Thanks
You have to fetch your actual result from received via mysql_query()
command result.
For example after code
$res = mysql_query("some query");
This returned result resource should be passed to mysql_fetch_array()
, and other functions for dealing with result tables, to access the returned data.
Example:
$row = mysql_fetch_array($res, MYSQL_ASSOC);
If you need more then one row from your result you have to use loops.
The documentation regarding usage of these functions you can find here: http://php.net/manual/en/ref.mysql.php