daily pastebin goal
62%
SHARE
TWEET

connect_mysql

CFHeadphase May 27th, 2018 139 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top