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.
37 lines
840 B
PHP
37 lines
840 B
PHP
<?php
|
|
/*
|
|
|
|
图片使用情况记录表,因为图片选择是在本地服务器,信息平台在外部,图片信息需要先经过多媒体中心写记录,然后又要信息平台对这个记录进行跟更新
|
|
|
|
解决办法:信息平台把记录写到临时表,之后定时更新到原表,原表做双向同步
|
|
|
|
*/
|
|
|
|
class pictureUseStat_model extends CI_Model
|
|
{
|
|
|
|
function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->HT = $this->load->database('HT', TRUE);
|
|
}
|
|
|
|
//更新图片使用url
|
|
function set_useurl($PII_SN,$p_wh,$useurl)
|
|
{
|
|
$sql="
|
|
INSERT INTO Pictureusestat_tmp
|
|
(
|
|
PUS_PII_SN,
|
|
PUS_Url,
|
|
PUS_Suf
|
|
)
|
|
VALUES
|
|
(?,N?,?)
|
|
";
|
|
$query=$this->HT->query($sql, array($PII_SN,$useurl,$p_wh));
|
|
return $query;
|
|
//print_r($this->HT->queries);
|
|
}
|
|
|
|
} |