Advertisement
Guest User

Untitled

a guest
Mar 10th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <?php
  2.  
  3. error_reporting(E_ALL & ~(E_STRICT|E_NOTICE));
  4.  
  5. $host = 'localhost';
  6. $user = 'root_user_name';
  7. $password = 'root_user_pass';
  8. $db = 'my_database';
  9. $cxn = mysqli_connect($host,$user,$password) or
  10. die(mysqli_connect_error()); // <<<<<< line 9
  11. mysqli_select_db($cxn, $db ) or die(mysqli_connect_error());
  12.  
  13.  
  14. die('test');
  15.  
  16. $host = '51.51.51.51'; // <<<< just a fake IP address for the example
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement