View Single Post
Old 09-02-2003, 09:22 AM   #18 (permalink)
Odoggy5
Code Monkey
 
Odoggy5's Avatar
 
Join Date: Aug 2003
Location: SF
Posts: 47
Odoggy5 is on a distinguished road
Send a message via AIM to Odoggy5
ok still did'nt make it to the bookstore still using a tutorial on the web. I am tryin to connect to a mysql databse now and need some help. this is what I got.

Code:
<html>
<body>
<?
$dbcnx = @mysql_connect("localhost", "root", "mypasswd");
if (!$dbcnx) {  echo( "<P>Unable to connect to the " . 
"database server at this time.</P>" );  
exit();}
?>
</body>
</html>
I am trying to get that error message to pop up to verfiy that it is trying to connect, by using the wrong password, but it does not.
Odoggy5 is offline   Reply With Quote