Advertisement
Guest User

Untitled

a guest
Jan 30th, 2012
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('[1-8][ad]', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {
  2. for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
  3. if ($column_list[$i] == 'PRODUCT_LIST_NAME') {
  4. $HTTP_GET_VARS['sort'] = $i+1 . 'a';
  5. $order_str = ' order by pd.products_name';
  6. break;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement