Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- @author : Shubham Maurya,
- Email id : maurya.shubham5@gmail.com
- **/
- $DB_host = "localhost";
- $DB_user = "root";
- $DB_pass = "";
- $DB_name = "union";
- try
- {
- $DBcon = new PDO("mysql:host={$DB_host};dbname={$DB_name}",$DB_user,$DB_pass);
- $DBcon->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- // echo "Done..";
- }
- catch(PDOException $e)
- {
- echo "ERROR : ".$e->getMessage();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement