Advertisement
Guest User

database.php

a guest
Mar 26th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement