$query mi da questo :
SELECT * FROM `annunci` WHERE
`descrizione` LIKE "%%" OR
`genere` LIKE "%appartamento%" OR
`localita` LIKE "%torresuda%" OR
`posti` LIKE "%1%" AND attivo='S' AND disponibile='S'
il primo è vuoto di default cmq come printo quello che trova invece di printare tutto?
prim a ho usato questo pre printare
<?php
while ($data = mysql_fetch_array($select))
{
$descrizione = substr($data[descrizione],0,255);
echo '<table width="740" border="0" cellspacing="3" cellpadding="3">
<tr>
<td colspan="2"class="tr" align="right">.................................................................................................................................................................................................................................................</td>
</tr>
<tr>
<td width="370" rowspan="6" align="right"><img name="" src="', $data[foto],'" width="320" height="250" alt="" class="foto"></td>
<td width="370" class="show_other"><strong class="show_info">', $data[titolo], '</strong></td>
</tr>
<tr>
<td class="show_other"><strong>Tipo : </strong><strong class="show_info"> ', $data[genere], '</strong></td>
</tr>
<tr>
<td class="show_other"><strong>Descrizione :</strong></td>
</tr>
<tr>
<td class="show_other">', $descrizione,"... ", '</td>
</tr>
<tr>
<td class="show_other"><strong>Località : </strong><strong class="show_info">', $data[localita], '</strong></td>
</tr>
<tr>
<td class="show_other"><p>Prezzo (media stagione) :',$data[prezzo_media],'<span class="asterisk"> **</span></p><p>
<div id="info"><a href="show.php?id=',$data[annuncio_id],'">guarda la scheda di ', $data[titolo],'</a></div></p></td>
</tr>
<tr>
<td colspan="2" class="tr" align="right">.................................................................................................................................................................................................................................................</td>
</tr>
</table>';
}
?>