SHARE
TWEET

database.php

a guest Mar 26th, 2012 33 Never
  1. <?php
  2. session_start();
  3.  
  4. $my_error = 'Could not connect to the database';
  5.  
  6. $mysql_host = 'localhost';
  7. $mysql_user = 'root';
  8. $mysql_pass = '';
  9. $mysql_db = 'phplogin';
  10.  
  11. if (@!mysql_connect($mysql_host,$mysql_user,$mysql_pass) || @!mysql_select_db($mysql_db)){
  12.  
  13. die ($my_error);
  14. }
  15.  
  16.  
  17. ?>
RAW Paste Data
Top