Changeset 689
- Timestamp:
- Mar 2, 2011, 10:31:16 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/search.php
r609 r689 47 47 if ( is_array($queryarray) && $count = count($queryarray) ) { 48 48 $str_query = array(); 49 for($ i=0;$i<$count;$i++){50 $str_query[] = "(post_title LIKE '%".$queryarray[$ i]."%' OR post_content LIKE '%".$queryarray[$i]."%')";49 for($j=0;$j<$count;$j++){ 50 $str_query[] = "(post_title LIKE '%".$queryarray[$j]."%' OR post_content LIKE '%".$queryarray[$j]."%')"; 51 51 } 52 52 $where .= " AND ".implode(" $andor ", $str_query); … … 63 63 $request .= " ORDER BY post_date DESC"; 64 64 $result = $xoopsDB->query($request,$limit,$offset); 65 66 65 while($myrow = $xoopsDB->fetchArray($result)){ 67 66 if ($myrow['post_type'] !=='revision' && $myrow['post_type'] !=='nav_menu_item')
Note: See TracChangeset
for help on using the changeset viewer.