Check that your tables names and fieldnames do not have spaces, hyphens or other special characters which php will not process. Replace with underscores. (example) shirt size should be shirt_size or shirt-size should be shirt_size. If not you will get a parse error from php server.