I am trying to write mysql statement that selects the last added value from the table.
Since the id column in my table is an auto increment value, I find that the easiest way to do this is selecting the row with the highest ID value.
I was wondering if anyone can help me accomplish this?
Something like this:
mysql_query(“SELECT * FROM table WHERE id=max(id)”
MAX is an aggregate/group function you can’t use like this
try this
OR
OR