Advertisement
Guest User

Untitled

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