salve io vorrei ricercare del testo nel mio database facendo la ricerca mi dovrebbe ridare tutti i record che contengono la stessa parola il codice che ho io funziona solo col i campi numerici se immetto un numero mi da tutti i record che contengono quel numero ma se metto un campo testo mi da sempre nullo io non so più cosa fare mi potreste dare un suggerimento? grazie mille
codice:<?php include("config1.php"); ### Elenco articoli attivi ### $titolo = "prova"; echo $titolo; $result1 = mysql_query("select artid, sezid, titolo, contenuto, image, image1, oggi from articoli where titolo=$titolo "); if (mysql_num_rows($result1) > 0) { echo "<table border=0 width=100% cellpadding=3 cellspacing=0>"; while(list($artid, $sezid, $titolo, $contenuto, $image, $image1, $oggi) = mysql_fetch_array($result1)) { $result2 = mysql_query("select sezname from sezioni where sezid=$sezid "); list($sezname) = mysql_fetch_row($result2); echo "<tr><td valign=top width=15%>"; if ($image != ($path."vuoto.gif")){ if ($image1 != ($path."vuoto.gif")){ echo "<a href=\"$image1\"><img src=\"$image\" width=142 border=0></a></td></tr>"; } else{ echo"<img src=\"$image\" border=0><td></tr>"; } } echo "<tr><td class=tit width=85% valign=top> Comunicato del $oggi Italian time</td></tr>"; echo "<tr><td class=tit width=85% valign=top> $titolo</td></tr>"; echo "<tr><td align=right><a href=\"$image1\"><font size=2 face=Humanst521 BT><img border=0 src=../360-2/images/biglia.jpg width=13 height=11></font></a>[/b]"; echo "<font face=Humanst521 BT size=2><a href=\"$image1\"> Scarica il file PDF</a></font>"; echo "<font size=2 face=Humanst521 BT><img border=0 src=../360-2/images/biglia.jpg width=13 height=11></font>"; echo "<font face=Humanst521 BT size=2><a href=\"mailto:?subject=Segnalazione sito web&body= Ciao, penso che questo sito possa interessarti. L'URL è: http://www.movelogistics.it/it/index.htm\">Invia pagina ad un amico</A></font></td></tr>"; } echo "</table>"; } else{ } echo " <b class=px14>[/b]"; php?>

Rispondi quotando
