How to get the primary key of the last row inserted into the table
I am using multiview index to insert the news details. In the first view the user can enter details of news which is then inserted into db on clicking the next button
the second view gives a user to add images of that news (only 3 images allowed) ,