Getting insert id with insert PDO MySQL

junmoonmyjuzp

New Member
Im getting to grips with the basics of PDO.However Im trying to get the id of the inserted row, Im using:\[code\]$query = $system->db->prepare("INSERT INTO {$this->_table} (name,description) VALUES (:name,:description)");$query->execute(array('name'=>$name,'description'=>$description));\[/code\]The tutorials I have come across are regarding transactions, however I am not using transactions!
 
Back
Top