Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $serv = "mysql:host=localhost;dbname=test1";
- $user = "root";
- $pass = "";
- try{
- $dbCon = new PDO($serv,$user,$pass) ;
- echo"good conect";
- $dbCon->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
- }
- catch(PDOException $e){
- echo"error" . $e->getMessage();
- }
- ?>
Add Comment
Please, Sign In to add comment