Last active
August 29, 2015 14:01
-
-
Save Lif3line/4f83f701ca174ebc1788 to your computer and use it in GitHub Desktop.
Simple connection script to be included for dealing with MySQL databases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db_host = ''; | |
$db_username = ''; | |
$db_pass = ''; | |
$db_name = ''; | |
@mysql_connect("$db_host","$db_username","$db_pass") or die ("Could not connect to mysql"); | |
@mysql_select_db("$db_name") or die ("Database not found"); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment