master
LMR 1 year ago
parent 3645a67b45
commit 6f8a287ac1

@ -793,10 +793,11 @@ class Information_model extends CI_Model
$keysql = ''; $keysql = '';
foreach ($keywords as $key) { foreach ($keywords as $key) {
$keysql .= ' OR ic_content like \'%' . $key . '%\''; $keysql .= ' OR ic_content like \'%' . $key . '%\'';
$keysql .= ' OR ic_url like \'%' . $key . '%\'';
} }
$search = ' AND (1=0 ' . $keysql . ')'; $search = ' AND (1=0 ' . $keysql . ')';
$sql = " $sql = "
SELECT TOP 10 ic_id, ic_url SELECT TOP 10 ic_id, ic_url, ic_content
FROM infoStructures is1 FROM infoStructures is1
INNER JOIN infoContents ic ON ic.ic_id = is1.is_ic_id INNER JOIN infoContents ic ON ic.ic_id = is1.is_ic_id
AND ic.ic_sitecode = is1.is_sitecode AND ic.ic_sitecode = is1.is_sitecode

Loading…
Cancel
Save