Jump to content

Update query problem


mattBeck

Recommended Posts

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

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...