zaly 0 Posted June 19, 2012 Report Share Posted June 19, 2012 Как сделать, чтобы при поиске, товары выпадали по алфавиту, а не по дате добавления? Quote Link to post Share on other sites
support 446 Posted June 19, 2012 Report Share Posted June 19, 2012 Попробуйте в /advanced_search_result.php поменять: $where_str .= " ) GROUP BY p.products_id ORDER BY p.products_id "; [/code] на: [code] $where_str .= " ) GROUP BY p.products_id ORDER BY pd.products_name "; Quote Link to post Share on other sites
zaly 0 Posted June 19, 2012 Author Report Share Posted June 19, 2012 Спасибо, помогло! Quote Link to post Share on other sites
support 446 Posted June 19, 2012 Report Share Posted June 19, 2012 Не за что Quote Link to post Share on other sites
alexts 18 Posted June 19, 2012 Report Share Posted June 19, 2012 А как сюда добавить обратную сортировку , то есть по убыванию. А то при запросе ноутбука вываливается с начала аксессуары, подставки всякие. Куда desc вставить? Quote Link to post Share on other sites
support 446 Posted June 20, 2012 Report Share Posted June 20, 2012 По идее, вот так: $where_str .= " ) GROUP BY p.products_id ORDER BY pd.products_name DESC "; [/code] Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.