Advertisement
Guest User

Untitled

a guest
Oct 19th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <?php
  2.  
  3. $db_host = 'localhost';
  4. $db_user = 'root';
  5. $db_password = 'root';
  6. $db_name = 'wdev';
  7. $db_charset = 'utf8';
  8.  
  9. $mysql = mysql_connect($db_host, $db_user, $db_password) or die ('No database connection: '.mysql_error());
  10. mysql_select_db($db_name) or die (mysql_error());
  11.  
  12. mysql_set_charset($db_charset, $mysql);
  13.  
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement