Advertisement
Guest User

Untitled

a guest
May 20th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. <?
  2.  
  3. $username = "USER"; //the username you connect to the mysql server with
  4. $password = "PASS"; //the password that you use to login to the server
  5. $server = "localhost"; //the db server address example- mysqlserver.yourwebhost.com
  6. $db_conn = "database"; //the database which your information will be stored
  7.  
  8.  
  9. $conn = mysql_connect($server,$username,$password) or die ('cant connect to server: ' . mysql_error());
  10. mysql_select_db("".$db_conn) or die ('can use the db : ' . mysql_error());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement