for sure i has to do with your query and not PHP. So line 1 is in your query, echo it and show us.. -----Original Message----- however the error I get is upon clicking submit on the form. ----You have an error in your SQL syntax near '' at line 1 ---