FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


search script.





ranzon
hi.
i want to create a search function to search thru my news in a mySQL database.. how can i make that??
avk
Let the table name be 'news' and u want to search for 'searchterm'

and the row which contains the news is 'detailNews'

here is the query



Code:
 

$query="SELECT * FROM news WHERE detailNews=%searchtem%";



I think that this might work..
Related topics
Creating a Search Script with PHP for MySQL
Search Script
Make me a search script !!! For loads of Frih$'s !
Search Script
Search function
Highlighting Search Terms
Blog Search
Search Script..?
MySql issues
PHP - checking lengths
AJAX tutorial [2nd part now updated]
sick of the old boring Tree system for everything(like CMS)
What is Google doing?
Will work for FRIH$
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.