$category_ids = db_get_fields('SELECT category_id FROM ?:categories WHERE parent_id=?i AND category_id!=?i', 0, 1);
foreach ($category_ids as $category_id){
fn_delete_category($category_id);
}
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.