Introduction: This is a detailed page of text database search methods. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 327677 'rolling = 'no'>
Searchstr = ("/". preg_quote ($ searchstr )."/");
// $ Searchstr is the search keyword
$ Records = file ($ file); // obtain the number of all records
// $ File is the data file to be searched.
$ Search_reocrds = preg_grep ($ searchstr, $ records); // start searching for records
// $ Search_reocrds indicates the number of records found.
Unset ($ records );
If ($ search_records ){
// Start displaying records and write down your own ProcessingProgram********************
While (List ($ key, $ Val) = each ($ search_records )){
Echo "$ Val <br> ";
}
//************************************** **************
}
More articles on "A text database search method"
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/327677.html pageno: 12.