Created
October 21, 2013 07:23
-
-
Save abdullahbutt/7079845 to your computer and use it in GitHub Desktop.
PHP mysql_connect() Function
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 | |
$con = mysql_connect("localhost","mysql_user","mysql_pwd"); | |
if (!$con) | |
{ | |
die('Could not connect: ' . mysql_error()); | |
} | |
// some code | |
mysql_close($con); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment