Advertisement
Guest User

conn.php

a guest
Jun 17th, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <?php
  2.  
  3. // Connection to db page
  4.  
  5. // Setting variables and connection
  6. $server = "localhost";
  7. $user = "root";
  8. $password = "";
  9. $db = "testphp_1";
  10. $conn = mysqli_connect($server,$user,$password,$db);
  11.  
  12. // Opening Connection and handling error
  13. if(!$conn){ exit("Failed to Connect with DataBase."); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement