Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. <?php
  2. $host = "localhost"; // Host name
  3. $username = "root"; // Mysql username
  4. $password = ""; // Mysql password
  5. $db_name = "2q"; // Database name
  6. $tbl_name = "users"; // Table name
  7.  
  8. // Connect to server and select databse.
  9. mysql_connect("$host", "$username", "$password")or die("cannot connect");
  10. mysql_select_db("$db_name")or die("cannot select DB");
  11. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement