I am attempting to display an entire database (its not large- only 125 rows for people to see, not touch) I am getting a result of:
"
Client 3.X Users
Resource id #2
"
on the website. Am I doing something wrong? This is my first pass at PHP. Any help would be appreciated. By the way, throwing it into a cool looking table would be ideal.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<h2> Client 3.X Users</h2>
<?php
$username = "username";
$password = "password";
$host = "localhost";
$database = "database";
mysql_connect($host,$username,$password) or die("Cannot connect to the database.<br>" . mysql_error());
mysql_select_db($database) or die("Cannot select the database.<br>" );
$result = mysql_query("SELECT * FROM upgrade"
;
echo "$result";
?>
"
Client 3.X Users
Resource id #2
"
on the website. Am I doing something wrong? This is my first pass at PHP. Any help would be appreciated. By the way, throwing it into a cool looking table would be ideal.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<h2> Client 3.X Users</h2>
<?php
$username = "username";
$password = "password";
$host = "localhost";
$database = "database";
mysql_connect($host,$username,$password) or die("Cannot connect to the database.<br>" . mysql_error());
mysql_select_db($database) or die("Cannot select the database.<br>" );
$result = mysql_query("SELECT * FROM upgrade"
echo "$result";
?>