When i add a new from my custom CMS, i need to add some diferent info about this post at 2 different tables.
So the first table is DATA and the Second is SEO.
When I press on PUBLISH button at my cms , i add some data at DATA table with xx id, also i add some data at SEO table , but i need that the data inserted at SEO table have same ID with the data added at DATA table.
I have looked around but i haven’t found what i wanted.
Please if some one know how to do that,please answer to this post.
It’s tricky without any more information but I’d guess you’re looking for
mysql_insert_id()