Re: viewing search result

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




str_replace(' ','%',$searchwords);

$query="select * from table where colom like '%$searchwords%'  order by id
desc ";
$result=mysql_query($query);
$numresult=mysql_num_rows($result);


Use limit in your select statement.

laters,

Fedde

~=There's a fine line between genius and insanity. I have erased this line=~

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux