I have this query:
$query = 'SELECT ForteID, Disposition, appNumber, Finance_Num, Num_Payments, ACH_CC, Notes, Date FROM CSLogs.dbo.Logs WHERE ForteID = ' . $_GET['ForteID'];
It works fine, but I want to add this:
ORDER BY Date DESC
But the only place I can add it in a sql query when I am in SQL Management Studio is at the end after the Where Statement, but the statement ends at the ‘ after Where ForteID =. So adding that the Order By does not works and breaks the code. Any suggestions?
Have you tried: