When I execute the following script I can connect using 'mysqli_connect ' but
I get a "DB Error: Not Found" when I display the $db->Message() after
attempting the DB::Connect.
And, "yes", the "restaurant " database does exist.
Where should I start looking?
PHP 5.0.4 / mySQL 4.1.13-nt / IIS / XP Pro
TIA,
Larry Woods
<?php
require 'DB.php';
$db=mysqli_conn ect('localhost' ,'root','xxxx', 'restaurant');
if (! $db ) {
die("Can't connect: ".mysqli_connec t_error());
}
else {
echo "Connection successful!<br/>";
mysqli_close($d b);
}
$db=DB::connect ('mysql://root:xxxx@local host/restaurant');
if (DB::isError($d b)) {
die($db->getMessage() );
}
else {
print "\$db connection was successful!";
}
?>
I get a "DB Error: Not Found" when I display the $db->Message() after
attempting the DB::Connect.
And, "yes", the "restaurant " database does exist.
Where should I start looking?
PHP 5.0.4 / mySQL 4.1.13-nt / IIS / XP Pro
TIA,
Larry Woods
<?php
require 'DB.php';
$db=mysqli_conn ect('localhost' ,'root','xxxx', 'restaurant');
if (! $db ) {
die("Can't connect: ".mysqli_connec t_error());
}
else {
echo "Connection successful!<br/>";
mysqli_close($d b);
}
$db=DB::connect ('mysql://root:xxxx@local host/restaurant');
if (DB::isError($d b)) {
die($db->getMessage() );
}
else {
print "\$db connection was successful!";
}
?>
Comment