Re: HELP... 1064 You have an error in your SQL syntax;
The major problem you're having is that now with your custom dropdown filter, you have sort orders being set in two places: with your dropdown and with the column headings (the default way that the cart sets the orders, using a $_GET['sort'] parameter). In order to avoid the sql error, you need to chop that down to just a single way to set the sort order - probably by deleting or commenting out the entire section of code from lines 139 to 193.
Then to set your default value to the new->old that you want, change line 50 of your code to:
PHP Code:
$alpha_sort = ' order by p.products_date_added DESC';
Last edited by bunyip; 27 Jul 2009 at 11:05 PM.
Neville
An assumption is what you arrive at when you get tired of thinking...
Bookmarks