SHARE
TWEET

Untitled

a guest Jun 15th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $dbhost = 'localhost';
  3. $dbuser = 'root';
  4. $dbpass = '';
  5.  
  6.  
  7. $fno=$_POST['fno'];
  8. $date=$_POST['timestamp'];
  9. $time=$_POST['time'];
  10. $name=$_POST['name'];
  11. $fname=$_POST['fname'];
  12. $resadd=$_POST['radd'];
  13. $mob=$_POST['mob'];
  14. $land=$_POST['land'];
  15. $email=$_POST['email'];
  16. $cjoin=$_POST['courjoin'];
  17. $cfee=$_POST['courfee'];
  18. $batime=$_POST['btime'];
  19. $select=$_POST['select'];
  20.  
  21.  
  22.  
  23. $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
  24.  
  25. $dbname = 'smart';
  26. mysql_select_db($dbname);
  27.  
  28. $result = mysql_query("INSERT INTO register
  29.  VALUES('$fno','$date', '$time','$name','$fname','$resadd','$mob','$land','$email','$cjoin','$cfee','$batime','$select') ")
  30. or die(mysql_error());  
  31.  
  32.  
  33. echo "sucessful record added";
  34. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top