I am trying to insert the Name and Surname into an User table I created using mysql. The process.php file that has to insert the data throws a syntax error on line 10 (the " just before the INSERT):
Parse error: syntax error, unexpected ' " ', expecting ' , ' or ' )'
What is the problem? Here is my code:
<?php include 'database.php';
// create a variable
$first_name=$_POST['first_name'];
$last_name=$_POST['last_name'];
//Execute the query
mysqli_query ($connect"INSERT INTO User(Name, Pass)
VALUES('$first_name','$last_name')");
?>