Skip to content

Instantly share code, notes, and snippets.

@biboletin
Last active December 17, 2015 09:18
Show Gist options
  • Save biboletin/5585977 to your computer and use it in GitHub Desktop.
Save biboletin/5585977 to your computer and use it in GitHub Desktop.
<?php
$link = mysql_connect("localhost", "root", "");
if(!$link) {
die("There is a problem:<br />" . mysql_error());
}
if(!mysql_select_db("DATA_BASE_NAME")) {
die(mysql_error());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment