Advertisement
Guest User

Connect

a guest
Jul 5th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Connect
  2.  
  3. <?php
  4. function Connection(){
  5. $server="tcchvo.000webhost.com";
  6. $user="hid1728660_h22stein";
  7. $pass="hvo123";
  8. $db="id1728660_medidor";
  9.  
  10. $connection = mysql_connect($server, $user, $pass);
  11.  
  12. if (!$connection) {
  13. die('MySQL ERROR: ' . mysql_error());
  14. }
  15.  
  16. mysql_select_db($db) or die( 'MySQL ERROR: '. mysql_error() );
  17. return $connection;
  18. }
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement