I'm just trying to retrieve some values from my MySQL database, but all I get is "Resource ID #2".
Here's the PHP code, without the specifics like username, password, and database name.
Here's the PHP code, without the specifics like username, password, and database name.
Code:
<?php
$connection = mysql_connect("localhost","user","password");
if (!$connection)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("database",$connection);
$result = mysql_query("SELECT * FROM user");
echo $result;
?>