$query="SELECT name,web,acronym FROM groups WHERE id=".$prod["group1"];
$result=mysql_query($query);
$tmp=mysql_fetch_array($result);
$prod["groupname1"]=$tmp["name"];
$prod["groupweb1"]=$tmp["web"];
$prod["groupacron1"]=$tmp["acronym"];
}
if($prod["group2"])
{
$query="SELECT name,web,acronym FROM groups WHERE id=".$prod["group2"];
$result=mysql_query($query);
$tmp=mysql_fetch_array($result);
$prod["groupname2"]=$tmp["name"];
$prod["groupweb2"]=$tmp["web"];
$prod["groupacron2"]=$tmp["acronym"];
}
if($prod["group3"])
{
$query="SELECT name,web,acronym FROM groups WHERE id=".$prod["group3"];
$result=mysql_query($query);
$tmp=mysql_fetch_array($result);
$prod["groupname3"]=$tmp["name"];
$prod["groupweb3"]=$tmp["web"];
$prod["groupacron3"]=$tmp["acronym"];
}
$query="select platforms.name, platforms.icon from prods_platforms, platforms where prods_platforms.prod='".$id."' and platforms.id=prods_platforms.platform";
$result=mysql_query($query);
while($tmp=mysql_fetch_array($result)){
$platforms[]=$tmp;
}
/*
// if we want other parties?
$query="SELECT prodotherparty.party, prodotherparty.party_place, prodotherparty.party_year, prodotherparty.partycompo, parties.name FROM prodotherparty LEFT JOIN parties ON parties.id=prodotherparty.party WHERE prod=".$prod["id"];
$query="SELECT downloadlinks.id,downloadlinks.link,downloadlinks.type FROM downloadlinks WHERE downloadlinks.prod=".$prod["id"]." ORDER BY downloadlinks.type";