Created
March 5, 2017 08:49
-
-
Save Ajax30/5e5c928e2409bed37bacf20b51a32609 to your computer and use it in GitHub Desktop.
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 | |
try { | |
$con = new PDO('mysql:host=127.0.0.1;dbname=db_name','db_user','myPass'); | |
} catch (PDOException $e) { | |
die("Database connection failed."); | |
} | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment