Advertisement
Guest User

Untitled

a guest
Jun 6th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. <?php
  2. {
  3. $host = "localhost";
  4. $user = "Hadesuk";
  5. $password = "XXXXXXX";
  6. $database = "Hadesuk";
  7. $connection = mysql_connect($host,$user,$password)
  8.    or die ("couldn't connect to the server");
  9. $db = mysql_select_db($database,$connection)
  10.    or die ("Database selection failed")
  11. $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' )";
  12. $result = mysql_query($query)
  13. or die ("Couldn't execute query.");
  14. echo "New Baddy added to database<br>";
  15. }
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement