Created
May 22, 2012 10:57
-
-
Save ganglio/2768325 to your computer and use it in GitHub Desktop.
MySQL Connection
This file contains hidden or 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 | |
$host="HOSTNAME"; | |
$username="USERNAME"; | |
$password="PASSWORD"; | |
$database="DATABASE"; | |
if (!($db=mysql_connect($host,$username,$password))) | |
die("unable to connect:".mysql_error()); | |
if (!mysql_select_db($database,$db)) | |
die("unable to select database:".mysql_error()); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment