Tu sei stato non gentilissimo ma qualcosa di più....
Il fatto è che non so proprio come mettere l'id alle righe 
perchè il mio codice è questo:
Codice PHP:
while (($riga=oci_fetch_array($queryprima, OCI_NUM+OCI_RETURN_NULLS))){
foreach ($riga as $key => $item){
if($key == 1){
$richiesta=$item;
$query=oci_parse($c,"select SEQRICHIESTA from cons_esami_assegnare where RICHIESTA='".$richiesta."'");
oci_execute($query);
while (($ris2=oci_fetch_array($query, OCI_ASSOC))){
foreach($ris2 as $luck){
}
}
echo " <td align='center'> <input type='radio' name='richiesta' value=' ".$luck." ' onclick='this.form.submit()'>".($item !== null ? htmlentities($item, ENT_QUOTES) :""). "</td>\n";
} else{
echo " <td align='center'>".($item !== null ? htmlentities($item, ENT_QUOTES) :""). "</td>\n";
}
}
echo "</font></tr>\n";
}
sto per tentare il suicidio