Want more features on Pastebin? Sign Up, it's FREE!
Guest

database.php

By: a guest on Mar 26th, 2012  |  syntax: PHP  |  size: 0.29 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>
clone this paste RAW Paste Data