Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $DBhost = "localhost";
- $DBuser = "homestead";
- $DBpass = "secret";
- $DBname = "dbjson";
- try{
- $DBcon = new PDO("mysql:host=$DBhost;dbname=$DBname",$DBuser,$DBpass);
- $DBcon->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
- }catch(PDOException $ex){
- die($ex->getMessage());
- }
Add Comment
Please, Sign In to add comment