I am creating this blog. My question is that how can I get the id (which is primary auto) of the post i JUST made??? Now, I can't use WHERE to compare the post itself with the database to get the id... How can I do it???
Take it as this: If you had 3 columns in a table, ID, TITLE,MESSAGE. Where ID is primary auto. If you insert a record in the database, how can you now find out what ID did it get? Considering that the Title field CAN be NULL. I don't think comparing the whole message is a good idea.
ID for post
Moderator: General Moderators
Re: ID for post
There are 10 types of people in this world, those who understand binary and those who don't
Re: ID for post
Wow thanks a million... Didn't knew that one...