working with $wpdb->query results
-
Hi everyone,
I have created a query:
$sql_query = $wpdb->query(” select category_parent from $wpdb->categories where category_parent>0″);And echoed it:
echo $sql_query;Which gives me the # of rows affected by the query.
NOW..how to work with the results so that I can do something useful ?? ???
Thanks for helping the noob <blush>.
Sheri
P.S. I am looking for the info so that I can customize my navigation. Maybe there is already a function which determines which categories have children (meaning other categories, rather than posts associated to the category)?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘working with $wpdb->query results’ is closed to new replies.