Webeks.net - freelance programming
freelance programming - php, Joomla, Zend ...
Home :: Articles :: Programming :: Joomla! :: JTable get last inserted id

JTable get last inserted id

Written by Miha

At first glance it seems that Joomla JTable lacks a lastInsertedId() function. Here is how we can get last inserted id

  1. $row->bind($data);
  2. $row->check();
  3. $row->store();
  4.  
  5. $lastId = $row->id;


blog comments powered by Disqus