我正在尝试订购我的结果,但我收到了 TString 错误。有人可以告诉我在哪里或如何添加ORDER BY date DESC, paymentamount DESC
:
$sql = "SELECT * FROM `Carriers` WHERE fromzip >= '".mysql_real_escape_string($_REQUEST["from"])."'".$search_string.$search_loadtype;
这是我尝试过的,但它不允许我:
$sql = "SELECT * FROM `Carriers` WHERE fromzip >= '".mysql_real_escape_string($_REQUEST["from"])."'".$search_string.$search_loadtype ORDER BY date DESC, paymentamount DESC;