Error with Tables when following tutorials

Alaino 02 Mar, 2009
I was following the tutorials and when I got to page 6 of Saving to the Database I got this error:
DB function failed with error number 1064
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 '-to-the-editor ORDER BY cf_id LIMIT 0,20' at line 1 SQL=SELECT * FROM jos_chronoforms_letter-to-the-editor ORDER BY cf_id LIMIT 0,20
GreyHead 02 Mar, 2009
Hi Alaino,

You have hyphens in your form name and these give MySQL indigestion. Change letter-to-the-editor to letter_to_the_editor, drop the current table and create a new one.

Bob
This topic is locked and no more replies can be posted.