I'm sorry to ask for aid regarding syntax errors, but I really can't figure it out and I'm really bad with syntax errors 🙁
You have an error in your SQL syntax near ' '1');' at line 1
session_start();
//komt van VerwerkTST.php
echo $_POST['NaamTour'];
include("connect.php");
include("functions.php");
$verwerking = $_POST['Verwerking'];
if(isset($verwerking))
{
//mysql_query("Insert INTO ")
foreach($_SESSION['keuze'] as $i=>$array)
{
mysql_query("INSERT INTO tst_tourregel (Product_ID, Tour_ID) VALUES (" . $array[$i]. ", '" . $_SESSION['TI'] . "');")or die(mysql_error());
}
echo "Invoer Tour afgerond.";
}