You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
information-system/application/third_party/searchinfo/models/infos_model.php

21 lines
741 B
PHP

<?php
class infos_model extends CI_Model {
function __construct() {
parent::__construct();
$this->HT = $this->load->database('HT', TRUE);
}
function get_errorurls_pages($sitecode,$errorurl) {
$sql = "select ic_url from infoContents where ic_sitecode = ? and ic_content like '%{$errorurl}%'";
$query = $this->HT->query($sql,array($sitecode));
return $query->result();
}
function get_emptyamp_pages($sitecode){
$sql = "select ic_url from infoMetas left join infoContents on im_ic_id = ic_id where im_key = 'amp' and ic_sitecode = ? and im_value like '%<!--@CUSTOM-CONENT@-->%' and ic_type = 'none'";
$query = $this->HT->query($sql,array($sitecode));
return $query->result();
}
}