Hello,
So you have a function that returns an array. If you are familiar with calling arrays indices, it's easy to get the values you're after.
Example:
function dbInfo() {
$sql = "SELECT id, name FROM table WHERE id=1";
$result = mysql_query($sql);
//let's say you're just grabbing a single row
$row = mysql_fetch_array($result);
return $row;
} //end dbInfo()
//place returned result into variable
$data = dbInfo();
//now print the id column
echo ($data[id]);
//or print everything
foreach ($data AS $col) {
echo $col . "<br>";
} //endforeach
//or print the structure of your array to see what you have (depends on PHP version)
print_r($data);