插入一次,但插入了2条记录

时间:2017-10-05 09:52:04

标签: php mysql sql mysqli insert

$query="INSERT INTO tbl_job_seekers (first_name, last_name, email, password, present_address, city)
        VALUES
        ('$FirstName','$LastName','$Email','demo123','$ZipCode','$City' )";


        if(mysqli_query($link, $query)){

            echo "Candidate First Name: $FirstName <br>";
            echo "Candidate Last Name:  $LastName<br>";
            echo "Email: $Email <br>";
            echo "<br><br>Records added successfully.";
        } else{
            echo "ERROR: Could not able to execute $sql. " . mysqli_error($link);
        }

// close connection
mysqli_close($link);

0 个答案:

没有答案