Sorry, not be clear enough.
I'm trying to insert a new record in the database for a CMS content. I have a form with title, content text, etc. I would like to create automatically the title to use as url (title text title text => title-text-title-text). I created a function for this which works pretty well. To be sure there is no duplicate entry, I wanted to append the ID of the entry. I thought I could manage to integrate the variable you use for redirection [Insert_ID]. This obviously does not work.
I could manage the problem with update but not with insert a new record.
I hope I was a little bit clearer now :-)