calling values from a database
| From: | Jacob Wyke | Date: | Mon, 11 Feb 2002 19:25:08 +0000 |
| Subject: | calling values from a database | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-16816@lists.php.net to get a copy of this message | ||
How can i get a value from a database into a variable???
$db = mysql_connect("localhost", "", "");
mysql_select_db("TEST", $db);
$result = mysql_query("SELECT max(ID) FROM Tut_Main", $db);
But when i try to print $result it displays Resource id #2 instead.
Please help if u can, cheers.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com