Advertisement
Guest User

Untitled

a guest
May 1st, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. <?php
  2. //No short tags, some webservers have problems with them
  3.  
  4. $dbhost = 'localhost';
  5. $dbuser = 'root';
  6. $dbpass = 'password';
  7.  
  8. $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Cant connect to mysql for some DareNET reason');
  9.  
  10. $dbname = 'name';
  11. mysql_select_db($dbname);
  12.  
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement