i have this line of code which i cannot see a problem with but i keep getting an error.
$sql= "INSERT INTO emails (Firstname, Lastname, email, table) VALUES ('$a', '$b', '$c', '$table')";
the error i keep getting is
Error: You have an error in your SQL syntax near 'table) VALUES ('kevin', 'wood', 'kevin_wood@xxxxxxxx', 'news')' at line 1
the values are being passed to this page fine but it still gives me this error.
any help would be much appreciated.