matt.webcroisieres Posted May 27, 2011 Share Posted May 27, 2011 Db::getInstance()->autoExecute("INSERT INTO `prestashop`.`'.DB_PREFIX.'_devis` (`id_product`, `nom_client`, `prenom_client`, `date`, `email_client`, `telephone_client`, `message_client`, `voyage_de_noces`, `link`) VALUES ('$idProduct','$nom' ,'$prenom', '$depart', '$from', '$telephone', '$messages', '$travel', '$link')"); Normalement lorsque j'utilise se code, il doit bien s’exécuter ? Ça fait un moment que je suis dessus, je suis à bout d'idée.Le nom de ma table est jt_devis.. J'espère que vous en aurez des idées, merci d'avoir pris le temps de lire mon poste. Link to comment Share on other sites More sharing options...
matt.webcroisieres Posted May 27, 2011 Author Share Posted May 27, 2011 $query = array('id_product' => $_GET['id_product'], 'nom_client' => $nom, 'prenom_client' => $prenom, 'date' => $depart, 'email_client' => $from, 'telephone_client' => $telephone, 'message_client' => $messages, 'voyage_de_noces' => $travel, 'link' => $link); Db::getInstance()->autoExecute(_DB_PREFIX_.'devis', $query, 'INSERT'); 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