How to get vid - vocabulary id by vocabulary name in Drupal 6. You can get it by using this little function.
Source code viewer
function my_module_get_vid_by_name($vocabulary_name) // don't froget to replace my_module with your modules machine name { $vocabs = taxonomy_get_vocabularies(); foreach ($vocabs as $vocab_object) { if($vocab_object->name == $vocabulary_name) { return $vocab_object->vid; } } return FALSE; }Programming Language: PHP