Advertisement
Guest User

Untitled

a guest
May 5th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2. $hostname = "localhost";
  3. $dbname = "general";
  4. $username = "root";
  5. $password = "";
  6. try{
  7. $dataBase360 = new PDO("mysql:host=$hostname;dbname=$dbname",$username,$password);
  8. #Establish database connection with PDO system
  9. }catch(PDOException $e){
  10. echo "not connected!";
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement