<?php
$db = JFactory::getDBO();
$tag = JRequest::getString('tag');
$sql = "SELECT id, name FROM #__k2_tags WHERE name=".$db->Quote($tag);
$db->setQuery($sql, 0, 1);
$row = $db->loadObject();
?>
Now the $row is an object variable with two properties, the id and the name.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)