Skip to content

Instantly share code, notes, and snippets.

Created August 5, 2008 14:36
Show Gist options
  • Save anonymous/4074 to your computer and use it in GitHub Desktop.
Save anonymous/4074 to your computer and use it in GitHub Desktop.
<?php
$link = mysql_connect('sql.xxxxxx.com', 'user', 'pass');
mysql_select_db("scugogdb") or die(mysql_error());
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment