Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //start session to allow carrying of data accross pages
- session_start();
- //connect to database using your username and pw
- $conn = mysql_connect ('localhost', 'root', '') or die('Couldnot connect to server');
- //select your database
- $db = mysql_select_db ('portal', $conn) or die ('could no find database');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement