Posted by:
CyberSpatium
(---.hsd1.or.comcast.net)
Before you can run your mysql query, you need to make a connection to the the mysql server first, then select the database to use.
$dblink = mysql_connect ( 'localhost', 'usr', 'pass');
mysql_select_db ('database', $dblink);