io farei così:
Fammi sapere se funzionaCodice PHP:
echo"<select size=\"10\" name=\"autoreLibro\" multiple>";
while($fetch_autore=mysql_fetch_array($select_autore))
{
if($fetch_autore['IDpersona'] == $a['IDpersona']))
{
echo"<option value=\"$fetch_autore[IDpersona]\" selected>$fetch_autore[nomePersona]</option>";
}else{
echo"<option value=\"$fetch_autore[IDpersona]\">$fetch_autore[nomePersona]</option>";
}
}
echo"</select>";
![]()