Hello Reader,
Yes, I'm back again. This time my problem is establishing a connection to MYSQL locally.
The code I used is pasted below.
<html>
<head>
</head>
<body text="#008080" bgcolor="#C0C0C0">
<?php
$db_host = "localhost";
$db_user = "glawas";
$db_password = "password";
$db_name = "DATABASE";
?>
<?php
$dbcnx = mysql_connect($db_host, $db_user, $db_password);
if (!dbcnx) {
echo ( "<p>Unable to connect to the ".
"database server at this time.</p>" );
exit();
}
?>
</body>
</html>
The error I get is
Fatal error: Call to undefined function mysql_connect() in c:\Inetpub\wwwroot\My Web\main.php on line 14
Can someone help plz?
r/s
Clueless