Guest User

Untitled

a guest
Jul 2nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <?php>
  2. $dbcnx = mysql_connect("localhost", "serverio_rune1", "*Password*");
  3. mysql_select_db ("serverio_rune");
  4. if (!$dbcnx){
  5. exit('<p>Unable to connect to the database</p>');
  6. }
  7. If (isset($_POST['submit']))
  8. {
  9. $user = $_POST['user'];
  10. $pass = $_POST['info'];
  11.  
  12. $sql = mysql_query("INSERT INTO userdata (user, info)
  13. VALUES ('$user', '$info')");
  14. }
  15. echo "Values successfully submitted to database. Thank you" ;
  16. ?>
Add Comment
Please, Sign In to add comment