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
Search function
MySql issues
PHP - checking lengths
AJAX tutorial [2nd part now updated]
Creating a Search Script with PHP for MySQL
Search Script
Highlighting Search Terms
sick of the old boring Tree system for everything(like CMS)
Blog Search
What is Google doing?
Make me a search script !!! For loads of Frih$'s !
Will work for FRIH$
Search Script..?
Search Script
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.