0
I’d like to find a way to know how to effect what I wish.
I have a news platform and I would like you to introduce me next to the previous video that has been inserted. It seems simple because you could just put it to go get the (id)-1
and would take the value. But what if one of the videos were deleted? There would be a value that would be empty and consequently would give a bug. Is there any way to do it?
Because they are news, you must in the database date/time of the correct post ? Just take the news X that is being displayed, fetch the date of this news, and check in the bank the first video going back from that date, or also, back an ID, if not found, back one more and so on.
– AnthraxisBR
You refer to the previous video as the one that was watched by the person?
– Renato Junior