prova cosìCodice PHP:$text = $_POST['word'];
$query ="SELECT A.Nome from ARTISTA A where A.Nome='$text'";
$result=mysql_query($query);
if (mysql_num_rows($result)==0){
"L'artista cercato non è ancora presente nel database";
exit;
}
else{
$artista = mysql_fetch_array($result);
header ("Location :".$artista['Nome'].".html");
}
exit;
![]()
P.S. ovviamente si da per scontato che ci sia un solo artisca con quel nome, altrimenti dovresti limitare la query a un solo risultato.

Rispondi quotando