$query = "select * from categories where sub_cat_id = $selected ORDER BY `weight`, `name` ASC";
$result = [COLOR="Red"]mysql_db_query[/COLOR]($dbs["db_name"],$query,$conn) or die ("Error in query: $query.2" . mysql_error());
If I added mysql_select_db() and changed to mysql_query as suggested, Parse error comes out.
Warning: mysql_select_db() expects at most 2 parameters, 3 given in ...
Error in query: select from categories where sub_cat_id = 11 ORDER BY
This code is working, only deprecated errors appeared.
This code used 3 parameters.
I have no right to access/modify PHP.ini file.
Hopes some can help me to solve this problem. Thanks in advance.