Advertisement
Guest User

Untitled

a guest
Jun 6th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. <html><body>
  2. <head><title>A Payserver</title></head>
  3.  
  4. <?php
  5. {
  6. $host = "Server";
  7. $user = "Username";
  8. $password = "******";
  9. $Database = "DB_name";
  10. $connection = mysql_connect($host,$user,$password)
  11.    or die ("couldn't connect to the server");
  12. $db = mysql_select_db($database.$connection)
  13.    or die ("Database selection failed")
  14. $query = "INSERT INTO Payservers (DNS , PORT , NICKS , COO , ECS_LINK , EDITED , BY , Other1 , Other2 , Other3 , Other4 , Other5 ) VALUES ( '$DNS' , '$PORT' , '$NICKS' , '$COO' , '$ECS_LINK' , '$EDITED' , '$BY' , '$Other1' , '$Other2' , '$Other3' , '$Other4' , '$Other5' )";
  15. $result = mysql_query($query)
  16. or die ("Couldn't execute query.");
  17. echo "New person added to database<br>";
  18. }
  19. ?>
  20. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement