I can find it in the database, but i cant get the value out.
Here is my code:
(i have filled the host, name, user and pass in my code there is online)
- Code: Select all
<?php
$db_host = "host";
$db_name = "name";
$db_user = "user";
$db_passwd = "pass";
$roster = mysql_connect($db_host, $db_user, $db_passwd);
mysql_select_db('$db_name', $roster);
$date = mysql_query('SELECT `update_time` FROM `roster_guild`');
echo $date
?>
The result is: Resource id #3
What goes wrong?