Das ist die Fehlermeldung
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE adr_id = 12' at line 5
Gruss Dave
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE adr_id = 12' at line 5
PHP:
<?php>
include ('config.php');
$sql = "UPDATE j_verkehrsk
SET adr_wochentag = '$variable1',
adr_datum = '$variable2',
adr_zeit = '$variable3',
WHERE adr_id = $id";
$result = mysql_query($sql, $con); //Ausführen des MySQL Befehls
if($result)
{
header ("Location: adressen.php");
}
else
{
echo "".mysql_error($con);
}
?>
Gruss Dave