Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //file to connect to database
- $hostname = "localhost"; // your host
- $username = "root"; //username of your db
- $password = "martijn"; //password of your db
- $db_name = "easy_register_script";
- $connect_db = mysql_connect('$hostname','$username','$password');
- if(!$connect_db){
- echo "'Couldn't connect to db, check host/username/password' . mysql_error() ";
- exit();
- }
- $select_db = mysql_select_db('$db_name','$connect_db');
- if(!select_db){
- echo "'Couldn't find the db, going to make one, ok?' . mysql_error()";
- exit();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement