Re: viewing search result
| From: | Fedde van Feggelen | Date: | Tue, 06 Jan 2004 06:36:19 +0000 |
| Subject: | Re: viewing search result | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32296@lists.php.net to get a copy of this message | ||
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=~