Hi Sirs,
I am passing night just to know how to resolv my problem.
I always receive this message error on the last line. Please how to resolv it?
in my insert.php
if(isset($_POST))
{
if ($_POST["name"] || $_POST["email"] || $_POST["password"])
{
$name = $_POST['name'];
$email = $_POST['email'];
$password = $_POST['password'];
if($name && $email && $password)
{
mysqli_query("INSERT INTO users(name,email,password) VALUES('$name','$email','$password')");
$registered = mysqli_affected_rows();
echo "$registered was insered";
}
else
{
echo "You have to complete the form";
}
?>
into my form.php
Name:
Email:
Password:
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Puneet KankarPosted Dec 2, 2019, 10:46 AM
Vrushali GhodkePosted Dec 2, 2019, 9:38 AM
Guest UserPosted Dec 2, 2019, 9:05 AM