I want to change this code so that I can directly feed this data into mysql database without going through mysql query (line 14). I just want this code to help me just as a data entry form. <?php session_start(); require_once('dbconnection.php'); //Code for Registration if(isset($_POST['signup'])) { $fname=$_POST['fname']; $lname=$_POST['lname']; $sname=$_POST['sname']; $email=$_POST['email']; $password=$_POST['password']; $contact=$_POST['contact']; $enc_password=$password; $sql=mysqli_query($con,"select id from attendee where email='$email'"); $row=mysqli_num_rows($sql); if{ $msg=mysqli_query($con,"insert into users(fname,lname,sname,email,password,contactno) values('$fname','$lname','$sname','$email','$enc_password','$contact')"); if($msg) { echo "<script>alert('Register successfully'
A site where you can share knowledge