php - What is wrong with this mysqli query? -


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.

Resolve: There was a typo in constant.In PHPmyadmin 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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -