Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php>
- $dbcnx = mysql_connect("localhost", "serverio_rune1", "*Password*");
- mysql_select_db ("serverio_rune");
- if (!$dbcnx){
- exit('<p>Unable to connect to the database</p>');
- }
- If (isset($_POST['submit']))
- {
- $user = $_POST['user'];
- $pass = $_POST['info'];
- $sql = mysql_query("INSERT INTO userdata (user, info)
- VALUES ('$user', '$info')");
- }
- echo "Values successfully submitted to database. Thank you" ;
- ?>
Add Comment
Please, Sign In to add comment