|
|
@ -47,10 +47,10 @@ class recommends_and_tips_model extends CI_Model
|
|
|
|
where 1=1
|
|
|
|
where 1=1
|
|
|
|
AND it.it_sitecode=?
|
|
|
|
AND it.it_sitecode=?
|
|
|
|
AND it.it_id=?
|
|
|
|
AND it.it_id=?
|
|
|
|
AND it.it_expires<=?
|
|
|
|
AND it.it_expires>=?
|
|
|
|
";
|
|
|
|
";
|
|
|
|
$query = $this->HT->query($sql, array($this->config->item('site_code'), $it_id,$timestamp));
|
|
|
|
$query = $this->HT->query($sql, array($this->config->item('site_code'), $it_id,$timestamp));
|
|
|
|
//print_r($this->INFO->queries);
|
|
|
|
print_r($this->HT->queries);
|
|
|
|
if ($query->num_rows() > 0) {
|
|
|
|
if ($query->num_rows() > 0) {
|
|
|
|
$row = $query->row();
|
|
|
|
$row = $query->row();
|
|
|
|
return $row;
|
|
|
|
return $row;
|
|
|
|