View Single Post
  #1  
Old 24th November 2011, 20:35
it53lv's Avatar
it53lv it53lv is offline
Senior Member
 
Join Date: Feb 2011
Latvia
Posts: 134
Default what im doing wrong ???
can anyone tell me why is this query wrong ???
Code:
$result = $DB->query ('SELECT * FROM ' . DB_PREFIX . 'categories WHERE type_id={$type_id} ORDER BY order_id ASC');
type_id default value is 1

problem is ORDER BY order_id ASC gets ignored because of type_id function
so what i' m doing wrong with this ?
Reply With Quote