Guest User

Untitled

a guest
Feb 6th, 2012
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2. include('config.inc');
  3.  
  4. $sql="INSERT INTO user (attendance1, colour1, shade1, attendance2, colour2, shade2)
  5. VALUES
  6. ('$_POST[attendance1]','$_POST[colour1]','$_POST[shade1]','$_POST[attendance2]','$_POST[colour2]','$_POST[shade2]')";
  7.  
  8. if (!mysql_query($sql,$con))
  9.   {
  10.   die('Error: Not Submitted' . mysql_error());
  11.   }
  12. echo "1 record added";
  13.  
  14. mysql_close($con)
  15. ?>
  16.  
  17. your form has been submitted
Advertisement
Add Comment
Please, Sign In to add comment