Advertisement
Guest User

Untitled

a guest
Aug 7th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. <?
  2.  $name=$_POST['name'];
  3.  $clan=$_POST['clan'];
  4.  $reporter=$_POST['reporter'];
  5.  $hack=$_POST['hack'];
  6.  
  7.  
  8. $mysql_host = "mysql16.000webhost.com";
  9. $mysql_database = "a3790586_data";
  10. $mysql_user = "a3790586_level14";
  11. $mysql_password = "starwars123";
  12.  
  13. mysql_connect($mysql_host,$mysql_username,$mysql_password)or die(mysql_error());
  14.  
  15.  
  16.  
  17.  mysql_query("INSERT INTO `data` VALUES ('$name', '$clan', '$reporter','hack')");
  18.  Print "Your information has been successfully added to the database.";
  19.  
  20.  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement