Advertisement
sihinaanuhas

databaseConection.php

May 3rd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <?php
  2.  
  3. $server = "localhost";
  4. $username = "root";
  5. $password = "";
  6. $db = "eshop";
  7.  
  8. //Create Connection to the database
  9. $con = mysqli_connect($server, $username, $password, $db);
  10.  
  11. //Check the Connection
  12. if (!$con) {
  13. die("Connection Faild ". mysqli_connect_error());
  14. }
  15.  
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement