I am wondering how to get 3 data out from database with this example:
$query->select(array('Name','Pos1','Pos2'))
->from($db->quoteName('#__regions'))
->where($db->quoteName('Name').'='.$_REQUEST['name']);
$db->setQuery($query);
$name = $db->loadResult();
$pos1 = $db->loadResult();
$pos2 = $db->loadResult();
I want to have data $name , $pos1 and $pos2. Or should i make code for each value i need? Thanks