Advertisement
Guest User

Untitled

a guest
May 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.36 KB | None | 0 0
  1. <?php
  2.  
  3. function dbConnect(){
  4.  
  5. $hostname = 'localhost';
  6. $username = 'tbcj857';
  7. $mysql_pass = 'm2d59';
  8. $database = 'tbcj857';
  9.  
  10. $conx = mysql_connect ($hostname , $username ,
  11. $mysql_pass) or die ("Can't connect to MySQL" .
  12. mysql_error() );
  13.  
  14. mysql_select_db ($database) or die
  15. ("Can't select that database" . msql_error() );
  16.  
  17. return $conx;
  18.  
  19. }
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement