Goeieavond,
Ik ben bezig met een simpel log systeem, alleen ik krijg steeds de volgende fout:
SQL
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 'by, action) VALUES (NULL, NOW(), '', 'Bewerkt homepagina')' at line 1
Ik roep hem aan dmv
De functie zelf:
PHP
function admin_new_log($do){ mysql_query("INSERT INTO a_logs (id, datum, by, action) VALUES (NULL, NOW(), '".$gebruiker['username']."', '".$do."')") or die(mysql_error());}
Het is al verholpen.