Hi, anyone know how i can find the last added entry in mysql db.
i am aware of: mysql_insert_id(), this function returns the last id but
I need to select the last row where $username = username.
designalex
0
Light Poster
Recommended Answers
Jump to Postwhat exactly is last row ?
When you store records in database , it is not necessary that the last entered row will be always stored at the bottom of the table.
Jump to Postthen why not use MAX(ID)
All 8 Replies
debasisdas
580
Posting Genius
Featured Poster
designalex
0
Light Poster
debasisdas
580
Posting Genius
Featured Poster
designalex
0
Light Poster
debasisdas
580
Posting Genius
Featured Poster
designalex
0
Light Poster
debasisdas
580
Posting Genius
Featured Poster
crishlay
0
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.