Re: Problem sortiing dyn query
| From: | John W. Holmes | Date: | Thu, 07 Aug 2003 22:14:58 +0000 |
| Subject: | Re: Problem sortiing dyn query | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158742@lists.php.net to get a copy of this message | ||
Creative Solutions New Media wrote:
Hi Can someone give me some indication why this might not be working? $query_Recordset1 = sprintf("SELECT * FROM sti_tracking ORDER BY '%s' '%s'",$query_Recordset1 = sprintf("SELECT * FROM sti_tracking ORDER BY %s %s",
$reSort_Recordset1,$direction_Recordset1); the values for $reSort_Recordset1 and $direction_Recordset1 are passed through from another page. $reSort_Recordset1 is the files to sort on and $direction_Recordset1 is the direction (ASC or DESC). ThanksYou're more than welcome. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ PHP|Architect: A magazine for PHP Professionals – www.phparch.com