SHARE
TWEET

connect.php

samclarko Jul 17th, 2016 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. //start session to allow carrying of data accross pages
  3. session_start();
  4. //connect to database using your username and pw
  5. $conn = mysql_connect ('localhost', 'root', '') or die('Couldnot connect to server');
  6. //select your database
  7. $db = mysql_select_db ('portal', $conn) or die ('could no find database');
  8. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top