Reading the last five entries in database from bottom to top
Posted: Fri Apr 18, 2003 6:41 pm
I have a database called main_news with three fields: Subject, Text and an auto-incrementing field called newsid.
I want to read out the last five news posts from bottom to top, so if i post something it comes out first and the other 4 below it. I want the subject to come out first and in bold, then a <br> and then the text of the news, then a <br> then the next subject etc.
I have been stuck on figuring out how exactly to do this.. any help is appreciated, thanks in advance.
I want to read out the last five news posts from bottom to top, so if i post something it comes out first and the other 4 below it. I want the subject to come out first and in bold, then a <br> and then the text of the news, then a <br> then the next subject etc.
I have been stuck on figuring out how exactly to do this.. any help is appreciated, thanks in advance.