mb75 Posted June 20, 2011 Share Posted June 20, 2011 Bonjour à tous,Dans mon module j'ai le code suivant : Db::getInstance()->Execute('INSERT INTO `'._DB_PREFIX_.'evenements` (`nom_evenements`, `date_evenements`, `heure_evenements`, `detail_evenements`, `image_evenements`) VALUES("'.Tools::getValue('titre').'","'.$date2.'","'.Tools::getValue('heure').'","'.Tools::getValue('description').'","'.$img.'")'); Comment faire pour récupérer l'Id de la ligne que je viens d’insérer ?En vous remerciant par avance, Link to comment Share on other sites More sharing options...
dfede Posted June 20, 2011 Share Posted June 20, 2011 Salut, pourquoi pas $nvo_ident = mysql_insert_id() à voir pas testé 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