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 ?