Ho fatto una cosa del genere........
Codice PHP:
$Ricerca=$_POST['Search'];
//divido
$Search=split("#",$Ricerca);
$MaxKey=count($Ricerca);
for($i=0; $i<=$MaxKey; $i++)
{
$res=mysql_query("SELECT ImgCode,ImgOwner,ImgTitle,ImgType,ImgDescription FROM Images WHERE ImgTitle LIKE '%$Search[$i]%' OR ImgTags LIKE '%$Search[$i]%' OR ImgDescription LIKE '%$Search[$i]%'")or die(mysql_error());
while (list($ImgCode,$ImgOwner,$ImgTitle,$ImgType,$ImgDescription)=mysql_fetch_row($res)){
echo "<table style='width: 100%; height: 167px'>
<tr>
<td>[b]$ImgTitle[/b]</td>
</tr>
Solo che come risultato mi da tutte le immagini......come mai??