Ciao, grazie della risposta ma sono davvero una schiappa con il codice php. Il mio codice è questo, come lo adatto al tuo? Grazie mille
Codice PHP:
<?
$keys = explode (" ", $chiave);
$query = "";
reset ($keys);
while (list(,$parola) = each ($keys))
{
$parola = trim($parola);
if ($parola != "")
$query .= "titolo LIKE '%$parola%' OR categoria LIKE '%$parola%' OR ";
}
$query .= "0";
$query = "SELECT idprofilo, titolo, categoria FROM profilo WHERE " . $query;
$result = mysql_query($query, $db);
while ($row = mysql_fetch_array($result))
{
echo "<table width=\"100%\" height=\"25px\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#000000\">
<tr>
<td>
<div id=\"risultati\" style=\"float:left; width:250px;\"><a href=\"artisti.php?idprofilo=$row[idprofilo]&ricerca=true\">" . "$row[titolo]</a></div>
<div style=\"float:left; width:200px; font-size:11px; text-transform:uppercase\">$row[categoria]</div>
<div id=\"risultati\" style=\"float:left; width:200px;\"><a href=\"mailto:info@kappashowbiz.com?Subject= Richiesta informazioni $row[titolo]\">RICHIEDI INFORMAZIONI</a></div>
</td>
</tr>
</table><table width=\"100%\" height=\"1px\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#28292d\"></table>";
}
?>