Jump to content

[SOLVED] Insert command from PHP not working


Recommended Posts

I'm getting acquainted with reading and writing from the Prestashop database. I  am trying to get an INSERT statement to work.


image.thumb.png.1a3f7be527bb053ebbf43fd9fa0d7510.png

$result should be true or false here, but instead it's a null value and nothing is written to the database. 

The command itself, if I run it from the phpmyadmin interface, works just fine.

The docs mention using _DB_PREFIX_ but I'm not sure what the point of that is, and if I have to remove the 'ps_' just to re-add it with the prefix variable?
 

EDIT: updated opening post as the site blocking the SQL quote made it too confusing.

Edited by Ikoshop
solved (see edit history)
Link to comment
Share on other sites

  • Ikoshop changed the title to [SOLVED] Insert command from PHP not working

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...