Nezzar
December 31st, 2001, 10:33
I used this code:
$dbserver = "localhost";
$dbname = "php-test";
$dbuser = "root";
$dbpass = "";
$dbcon = MYSQL_CONNECT($dbserver,$dbuser,$dbpass) or die ("Connection to database-server failed");
if ($dbcon)
{
print "Connection to Database succesful";
};
The Problem is that PHP always says that the connection succesful. I'm quite new to this whole PHP-thing and this is not a very difficult problem, I guess.
$dbserver = "localhost";
$dbname = "php-test";
$dbuser = "root";
$dbpass = "";
$dbcon = MYSQL_CONNECT($dbserver,$dbuser,$dbpass) or die ("Connection to database-server failed");
if ($dbcon)
{
print "Connection to Database succesful";
};
The Problem is that PHP always says that the connection succesful. I'm quite new to this whole PHP-thing and this is not a very difficult problem, I guess.