mattBeck Posted January 26, 2015 Share Posted January 26, 2015 Hi I've a problem updating the prestashop database via a query in a php script, the query looks like this $queryResultUpdateAttribute = mysql_query(' UPDATE ps_product_attribute SET quantity = ' . $resultQtyAttribute->DisponibilitaVarianteTagliaResult . ' WHERE reference = ' . $refAttribute . ' ; '); And even without errors the query doesn't succesfully update the database, reference and quantity are passed as strings. Link to comment Share on other sites More sharing options...
mattBeck Posted January 26, 2015 Author Share Posted January 26, 2015 I've solved it, the problem was related to the variable type. I've got another question though, since now the tables are updated but numbers doesn't show up in the BO quantities, any idea why? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now