Guest User

Untitled

a guest
Dec 13th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2.  
  3. // Turn off all error reporting
  4. //error_reporting(0);
  5.  
  6. //mySQL
  7. // connect to mysql
  8. $servername = "localhost";
  9. $username = "root";
  10. $password = "";
  11. $dbname = "your_db";
  12.  
  13. // Create connection
  14. $GLOBALS['mysql'] = new mysqli($servername, $username, $password, $dbname);
  15. // Check connection
  16. if ($GLOBALS['mysql']->connect_error) {
  17. die("Connection failed: " . $GLOBALS['mysql']->connect_error);
  18. }
Add Comment
Please, Sign In to add comment