Codice PHP:
while($first mysql_fetch....)
{
while(
$second mysql_fetch....)
$tmp[$first[id]] = array("tel"=>$second['tel'], "email"=>$second['email']);