Filter() public method

返回经过过滤的SQL语句
public Filter ( $sql ) : mixed
$sql
return mixed
示例#1
0
 /**
  * @param $query
  * @return int
  */
 function Insert($query)
 {
     //$query=str_replace('%pre%', $this->dbpre, $query);
     sqlite_query($this->db, $this->sql->Filter($query));
     return sqlite_last_insert_rowid($this->db);
 }
示例#2
0
 /**
  * @param $query
  * @return mixed
  */
 function Insert($query)
 {
     //$query=str_replace('%pre%', $this->dbpre, $query);
     $this->db->query($this->sql->Filter($query));
     return $this->db->lastInsertRowID();
 }
示例#3
0
 /**
  * @param $query
  * @return int|string
  */
 function Insert($query)
 {
     //$query=str_replace('%pre%', $this->dbpre, $query);
     mysqli_query($this->db, $this->sql->Filter($query));
     return mysqli_insert_id($this->db);
 }