grety Posted August 31, 2009 Share Posted August 31, 2009 Bonjour,J'aurai besoin pour certaines commandes de passer la commande en frais port a zeroj'ai ouvert tabs/adminorders.php pour y placer un submit :-( mais la mes cours en php commence a dater je ne sais pas comment je peux mettre trois champs a jour pour la commande sélectionnéedans la table _ordersorders total_shiping=0 total_paid et total_paid_real doit etre egal a total_productsMerci du coup main Link to comment Share on other sites More sharing options...
Dupont Communication Posted September 4, 2009 Share Posted September 4, 2009 Bonjour,Là c'est aussi du SQL qu'il te faut ;-)Pour une requête de type ajout dans une base de données (par exemple): $req = 'UPDATE `ps_orders` SET `delete` = '1' WHERE `orders total_shiping` = '0' AND `total_paid` = '100' LIMIT 1;'; Rappel : exécution d'une requête : Db::getInstance()->Execute($req); Bon développement ;-) 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