The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
Hi all
Hope everyone had a great Xmas!
Just a quick question :
On my website, people can write reviews about non-league football (soccer) clubs. The date they entered there review is stored in a database and so is the date of any `replies`. However, due to how the script works there is a tDATE column and a REPLYDATE column.
What I really need to happen is that when a user clicks on a link and they are taken to the review page, I need to show the NEWEST review OR newest REPLY being shown at the top of the page.
IE,
If a person posted an article yesterday and no one has posted any replies to that or any other article then that will be shown as the newest entry.
However, if someone `replies` today then I need that article to be shown at the top of the page as the `newest` entry simply because it has a reply.
Because Im `ordering by` the tDATE column first, can I order the REPLYDATE column also?
Ive tried :
sSQL="SELECT * FROM review WHERE INSTR(tleague,'" & nleague & "')ORDER BY tdate DESC, replydate DESC"
But the first posting it shows is one dated the 30th December 2008. However, Ive made a reply today and that is being shown as the second article when in fact I need that to be the first article to be shown.
I hope this all makes sense..
<
Hope everyone had a great Xmas!
Just a quick question :
On my website, people can write reviews about non-league football (soccer) clubs. The date they entered there review is stored in a database and so is the date of any `replies`. However, due to how the script works there is a tDATE column and a REPLYDATE column.
What I really need to happen is that when a user clicks on a link and they are taken to the review page, I need to show the NEWEST review OR newest REPLY being shown at the top of the page.
IE,
If a person posted an article yesterday and no one has posted any replies to that or any other article then that will be shown as the newest entry.
However, if someone `replies` today then I need that article to be shown at the top of the page as the `newest` entry simply because it has a reply.
Because Im `ordering by` the tDATE column first, can I order the REPLYDATE column also?
Ive tried :
sSQL="SELECT * FROM review WHERE INSTR(tleague,'" & nleague & "')ORDER BY tdate DESC, replydate DESC"
But the first posting it shows is one dated the 30th December 2008. However, Ive made a reply today and that is being shown as the second article when in fact I need that to be the first article to be shown.
I hope this all makes sense..
<