Manca il fetching dell'array:
codice:$query = "SELECT id,title FROM news WHERE text like '%{$search}%'"; $result = mysql_query($query); $number = mysql_num_rows($result); $i = 0; if ($number < 1) { print "<center> <font color=#000000>sorry no matches found</p></center>"; } else { while ($r=mysql_fetch_array($number)) { print "<a href=\"news.php?id=$r[id]\"> <font size=2> <font color=#000000>$r[title] </a> \n"; } }

Rispondi quotando