daily pastebin goal
52%
SHARE
TWEET

Motek

Ruven Aug 14th, 2016 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $servername = "localhost";
  2. $username = "username";
  3. $password = "pass";
  4. $dbname = "dbname";
  5. // Create connection
  6.  
  7. $conn = new mysqli($servername, $username, $password, $dbname);
  8. $conn->query("SET NAMES 'utf8'");
  9. $conn->query("set character_set_client='utf8'");
  10. $conn->query("set character_set_results='utf8'");
  11. $conn->query("set collation_connection='utf8'");
  12.  
  13.  
  14. // Check connection
  15. /*if ($conn->connect_error) {
  16.     die("Connection failed: " . $conn->connect_error);
  17. }
  18. echo "Connected successfully";*/
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