PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Depending on his table structure, that might not always work. MySQL can often re-use old values - i.e. it might not always be the largest number that was the most recent addition. If he's got ID set to be an auto-inc field, he should be fine but you never know...
Depending on his table structure, that might not always work. MySQL can often re-use old values - i.e. it might not always be the largest number that was the most recent addition. If he's got ID set to be an auto-inc field, he should be fine but you never know...
But as he said "I simply want to fetch the last id valus so that i can assign the new value in id which is higher then the previous one." i thought this would suffice. He just want to assign a new unique value from what i understand by the information he gave us.