How to optimize query with wpdb?
-
mysql_select_db('mywpdb');
$sql = "select cat_ID, cat_name from categories where category_count > 0 order by cat_ID";
$result = mysql_query($sql);
Is there a better way to do this with wpdb?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to optimize query with wpdb?’ is closed to new replies.