Hey guys I'm a newbie on this forum, and more or less one to PHP. I participate in other forums (based on website creation and maintenance), PM me if you want to know where.
Basically, what I want to do is print values from a MySQL table to a php page. I have no problem including the necessary php script to access the DB, etc etc. But I ran into problems when trying to print the values.
The page at which I am trying to print to is http://guards.dscpool.com and the script is (that is includes-ed) as follows:
<?php
$connect= mysql_connect ("localhost", "...", "...") or die ('Database failure: ' . mysql_error($dbh));
mysql_select_db ("...");
$get=mysql_query("SELECT * FROM may");
if ($get) {
$info=mysql_fetch_assoc($get);
}
else {
echo "Error:" . mysql_error();
}
mysql_close($connect);
?>
The page is currently displaying an error. I don't know what it is or how to fix it. Any help would be apprecated.