Advertisement
Guest User

Untitled

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