SHARE
TWEET

Untitled

a guest May 31st, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. const HOSTNAME = 'localhost'; // server
  4. const MYSQLUSER = 'root'; //superbruger
  5. const MYSQLPASS = 'root'; //password
  6. const MYSQLDB = 'mycitymyvoice'; //database name
  7.  
  8. // Create database connection object
  9. $con = new mysqli(HOSTNAME, MYSQLUSER, MYSQLPASS, MYSQLDB);
  10. $con->set_charset('utf8_general_ci');
  11.  
  12.  
  13. if($con->connect_error){
  14.     die('Error: ' .$con->connect_error.' (' .$con->connect_errno.')'); 
  15.     }
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