PHP expert |
|
ik heb steeds een vervelende error in mijn insert query...:s
hoe kan ik die oplossen?
Citaat: 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 'from, to, message) VALUES ('Simon', 'Simon', 'hallo')' at line
<?
$insQuery = "INSERT INTO `boodschap` (from, to, message) VALUES ('".$_SESSION['suser']."', '".$_POST['to']."', '".$_POST['message']."')";
$insQuery1 = mysql_query($insQuery) or die(mysql_error());
?>
<? $insQuery = "INSERT INTO `boodschap` (from, to, message) VALUES ('".$_SESSION['suser']."', '".$_POST['to']."', '".$_POST['message']."')"; ?>
|