Thanks for your answer, but I couldn't make that work.
The following worked fine (where "teste" is supplied by the user, via form, and "id, nome, ing, modo, extras" are columns names):
$query =
"SELECT * FROM receitas WHERE nome LIKE ('%$teste%')";
$result = mysql_query($query);
$number = mysql_numrows($result);
if ($number == 0) {print "Sorry";} else {
print "<br>There is $number recipes<br>";
for ($i=0; $i<$number; $i++) {
$nome = mysql_result($result,$i,"nome");
print "$nome<br>";
}
}
But I couldn't make the query work in more than one column. I tried this:
$query =
"SELECT * FROM receitas WHERE nome, modo LIKE ('%$teste%')";
It pointed an error on this line:
$number = mysql_numrows($result);
Besides, I read in the MySQL Manual that I should use MATCH/AGAINST, but again, I couldn't use it.
Thanks again,
helil