I am using PostgreSQL for my Codeigniter website. I am using grocery crud for add, edit and delete operations. While doing an edit or add, I want to rename an uploaded file dynamically based on the id of the content. I am able to do this using grocery crud's
I want a next id of the content while adding a new content. I tried to use
nextval() function, but sequence gets incremented with it. How can get the last value of the sequence without using
Or is there a simple way I can do this?