Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (7 sloc) 177 Bytes
<?php
$link = mysql_connect('hostname','dbuser','dbpassword');
if (!$link) {
die('Could not connect to MySQL: ' . mysql_error());
}
echo 'Connection OK'; mysql_close($link);
?>