Advertisement
CFHeadphase

connect_mysql

May 27th, 2018
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. <?php
  2. $host = "localhost";
  3. $username = "-";
  4. $password = "-";
  5. $dbname = "-";
  6.  
  7. $db = mysqli_connect($host, $username, $password, $dbname);
  8.  
  9. if(!$db){
  10.     die('Unable to connect to database [' . mysqli_connect_error() . ']');
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement