
August 26th, 1999, 09:12 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Hi - The following code prints the test message but bombs on the databse selection:
<HTML>
<BODY>
<?
$host="localhost";
$user="myuser";
$password="mypass";
$mysql_link=mysql_connect ($host,$user,$password) or die("Connection failed");
print("This is a test");
$mysql_select_db('joesauto', $mysql_link);
$query="SELECT * FROM joesauto";
$mysql_result=mysql_query($query, $mysql_link);
$mysql_close($mysql_link);
?>
</BODY>
</HTML>
Any ideas?
|