Hi,
I need help with displaing the second latest text in the database. I have a date field and text field. I could use current date -1 or smth, but i will have multiple entries in one day, not 1 entry a day.
I thought displaing them by ID, so the second latest will be latest id -1, but I might be deleting entries, so id numbers won't be in the order.
I think the best way will be to sort by date and then tell the DB to display text with second latest date.
I can sort, but i do not know which code to use to make php to display text with second latest date.
I was thinking get a variable $lastdate, assign to it the last date, then tell php to get news with the date id < $lastdate and limit it to one.
Do You think thats a good solution?
Thanks in advance.