Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html><body>
- <head><title>A Payserver</title></head>
- <?php
- {
- $host = "Server";
- $user = "Username";
- $password = "******";
- $Database = "DB_name";
- $connection = mysql_connect($host,$user,$password)
- or die ("couldn't connect to the server");
- $db = mysql_select_db($database.$connection)
- or die ("Database selection failed")
- $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' )";
- $result = mysql_query($query)
- or die ("Couldn't execute query.");
- echo "New person added to database<br>";
- }
- ?>
- </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement