Skip to content

Instantly share code, notes, and snippets.

@sivy
Created November 21, 2010 22:18
Show Gist options
  • Save sivy/709211 to your computer and use it in GitHub Desktop.
Save sivy/709211 to your computer and use it in GitHub Desktop.
<?php
$conn = mysql_connect('localhost', 'username', 'password');
if(!$conn) {
echo 'Error: ' . mysql_errno() . ' - ' . mysql_error();
}
?>
$db_url = 'mysql://username:password@localhost/ia2010';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment