Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = "localhost"; // Host name
- $username = "root"; // Mysql username
- $password = ""; // Mysql password
- $db_name = "2q"; // Database name
- $tbl_name = "users"; // Table name
- // Connect to server and select databse.
- mysql_connect("$host", "$username", "$password")or die("cannot connect");
- mysql_select_db("$db_name")or die("cannot select DB");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement