Hello!
May I ask why this is wrong please, I have stared on it for a long time now without finding the error:
$Query = "INSERT INTO columns(approvedtime, datum, authortype, title, author, authoremail, writing, link1, link2, approved, clicks)
values ('0', '$datum', 'user', '$title', '$author', '$authoremail', '$writing', '$link1', '$link2', '0','0')" or die (mysql_error());
I get this terrible error msg:
You have an error in your SQL syntax near 'columns(approvedtime, datum, authortype, title, author, authoremail, writing, li' at line 1
This is the table data:
Field Type Attribut Null Standard Extra
id tinyint(4) Nej auto_increment
datum date Nej 0000-00-00
authortype varchar(80) Nej
title varchar(80) Nej
approvedtime bigint(20) Nej 0
author varchar(80) Nej
authoremail varchar(120) Ja NULL
writing text Nej
link1 varchar(120) Ja NULL
link2 varchar(120) Ja NULL
approved tinyint(3) Nej 0
clicks tinyint(6) Nej 0