Advertisement
Guest User

Untitled

a guest
Jul 4th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <?
  2. error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR);
  3.  
  4.  
  5. $servername='localhost';
  6.  
  7. $dbusername='i8nuq6zj';
  8. $dbpassword='xactly2788';
  9.  
  10. $dbname='i8nuq6zj_signup';
  11.  
  12.  
  13.  
  14. ////////////////////////////////////////
  15. ////// DONOT EDIT BELOW /////////
  16. ///////////////////////////////////////
  17.  
  18. connecttodb($servername,$dbname,$dbusername,$dbpassword);
  19. function connecttodb($servername,$dbname,$dbuser,$dbpassword)
  20. {
  21. global $link;
  22. $link=mysql_connect ("$servername","$dbuser","$dbpassword");
  23. if(!$link){die("Could not connect to MySQL");}
  24. mysql_select_db("$dbname",$link) or die ("could not open db".mysql_error());
  25. }
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement