Skip to content

Instantly share code, notes, and snippets.

/config.php
Created Jan 15, 2017

Embed
What would you like to do?
<?php
error_reporting(0);
if(!mysql_connect("localhost","root","password_here")) //change your details
{
die('oops connection problem ! --> '.mysql_error());
}
if(!mysql_select_db("Your_databse_name")) //change databse name
{
die('oops database selection problem ! --> '.mysql_error());
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.