Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username="root";
- $password="";
- $database="stud";
- $first=$_post['first'];
- $last=$_post['last'];
- $email=$_post['email'];
- $cno=$_post['cno'];
- $dob=$_post['dob'];
- $add=$_post['add'];
- $con=mysql_connect("localhost",$username,$password);
- mysql_select_db("stud",$con);
- $query="INSERT INTO STUDENT VALUES('$first','$last','$add','$dob','$cno','$email')";
- mysql_query($query);
- echo"your data is inserted";
- mysql_close();
- ?>
Add Comment
Please, Sign In to add comment