Anyone help me with this? [PHP]
So.. i have this:
PHP Code:
<?php
include ("config.php");
$event = ($_POST['event']);
$where = ($_POST['where']);
$when = ($_POST['when']);
mysql_query("INSERT INTO event (event, where, when) VALUES ('$event', '$where', '$when')")
or die(mysql_error());
?>
And it's worked alot in the past...
But now i get this error:
Code:
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, when) VALUES ('testing', 'testsin', 'testing')' at line 1
Anyone help please??? Also, If anyone can give me tips on security, then i'll be extremely grateful! :)