- Where Developers Learn, Share, & Build Careers
I am adding a new email address to a database when I check to see that the user If using
, then (! ($ ($ $ Stmt = $ dbConnection- & gt; ('SELECT' email_addr 'FROM'). TABLE_NAME. 'WHERE' email_addr` = When I try to run
(if (($ ($! ($! ($! ($! ($! ($! ($!) And 'INSERT INTO'. 'TABLE_NAME' ('Email_addr`, `date_subscribed`,` act_code`, `subscribe_ip`) value (?,?,') ')))) Error me unknown column' Email_addr is found in '' field list ''. I tried a lot and thought maybe adding the backix would solve the problem, but it did not happen. If you want more code, please let me know. Solution: There was a typo in constant. Thanks for everyone to ask to run the query, so I searched for the problem.
Unknown column 'email_addr' in the 'Field List' This error indicates that you have a column name Those who are present are not present. Review your table to make sure it's the correct column name and make sure you're using the correct variable in your query.
Try removing '`' from the columns you are trying to insert:
(email_addr, date_subscribed, act_code, subscribe_ip) Also try to resonate the query and run it directly in phpMyAdmin to see the result. There may be a problem with your formatting that you do not know.
Comments
Post a Comment