Guest User

Untitled

a guest
Oct 21st, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2. $username="root";
  3. $password="";
  4. $database="stud";
  5. $first=$_post['first'];
  6. $last=$_post['last'];
  7. $email=$_post['email'];
  8. $cno=$_post['cno'];
  9. $dob=$_post['dob'];
  10. $add=$_post['add'];
  11. $con=mysql_connect("localhost",$username,$password);
  12. mysql_select_db("stud",$con);
  13. $query="INSERT INTO STUDENT VALUES('$first','$last','$add','$dob','$cno','$email')";
  14. mysql_query($query);
  15. echo"your data is inserted";
  16. mysql_close();
  17. ?>
Add Comment
Please, Sign In to add comment