Поиск


DB->query("SELECT ElementName,ElementPath FROM cms_main WHERE ElementID IN (SELECT item_028.ElementID as ElementID FROM item_028 WHERE item_028.body LIKE '%".$search_string."%')"); while(($result = $CMS->DB->fetchAssoc($ret))) { $results[] = $result; } $CMS->DB->freeResult($ret); } } ?>

.

! 3- .


$res) { echo "".$res."

"; } if(!empty($results)) { echo "
"; } foreach($results as $id => $res) { ?> 1.