michelleqw
Programmer
Dear PHP users,
For our gastbook we need to connect to a MySQL database.
If there is a connection possible we want to show a button. If not we don't want to crash the page! The page have to show without the gastbook button.
Now we are using:
$db_link = mysql_connect("localhost", "root", "qwert") or die ("couldn't connect to MySQL\n");
When there is no connecting possible the page will stop!
Our question: is there any source to checkout the connection without crashing?
Nice regards,
Michelle.
For our gastbook we need to connect to a MySQL database.
If there is a connection possible we want to show a button. If not we don't want to crash the page! The page have to show without the gastbook button.
Now we are using:
$db_link = mysql_connect("localhost", "root", "qwert") or die ("couldn't connect to MySQL\n");
When there is no connecting possible the page will stop!
Our question: is there any source to checkout the connection without crashing?
Nice regards,
Michelle.