overbags Posted April 20, 2018 Share Posted April 20, 2018 ciao a tutti ... devo inserire uno script che mi hanno dato online in una pagina php di prestashop però volevo sapere come interfacciarlo al database $query = 'UPDATE '._DB_PREFIX_.'customer SET email1 = IF(email2="" OR email2 is null, email1, email2) WHERE id_customer = ' .$this->id; // esegui la query...non conosco come ti interfacci al database :-) Link to comment Share on other sites More sharing options...
fedesib Posted April 20, 2018 Share Posted April 20, 2018 Ciao, credo che tu possa usare la classe DbQuery(), trovi un esempio nella documentazione ufficiale: http://doc.prestashop.com/display/PS16/Accessing+the+database Buona giornata, Federica 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