Switch17
07-14-2003, 03:53 AM
I just picked up a mysql book, and am beginning to learn some basics, but already seem to be struggling.
I have a table that I'm just trying to get to show up in a webpage. This is all thats in the file.
$user="xxxxxxx";
$host="localhost";
$password="xxxxxx";
mysql_connect($host,$user,$password);
mysql_select_db("xxxxx);
$query = "SELECT * FROM nfl_teams";
$result = mysql_query($query);
echo $result;
And All I ever get to show up is this:
Resource id #2
Can anyone help out a newbie in understanding all of this?
I have a table that I'm just trying to get to show up in a webpage. This is all thats in the file.
$user="xxxxxxx";
$host="localhost";
$password="xxxxxx";
mysql_connect($host,$user,$password);
mysql_select_db("xxxxx);
$query = "SELECT * FROM nfl_teams";
$result = mysql_query($query);
echo $result;
And All I ever get to show up is this:
Resource id #2
Can anyone help out a newbie in understanding all of this?