include/class/mysqlClass.php
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
include_once('mysql.php');
class mysqlClass extends mysql{
protected function connect()
{
$this->errormsg = '';
if(!function_exists('mysql_connect'))exit('不支持mysql_connect的php扩展');
$this->conn = @mysql_connect($this->db_host,$this->db_user, $this->db_pass);
$msg = $this->error();
if($msg){
$this->conn = null;
$this->errormsg = $msg;
}else{
$this->selectdb($this->db_base);
$this->query("SET NAMES 'utf8'");
}
}
protected function selectdb($name)
{
$this->basename = $name;
@mysql_select_db($name, $this->conn);
$msg = $this->error();
if($msg){
$this->errormsg = $msg;
}
}
protected function querysql($sql)
{
return mysql_query($sql,$this->conn);
}
public function fetch_array($result, $type = 0)
{
$result_type = ($type==0)?MYSQL_ASSOC:MYSQL_NUM;
return mysql_fetch_array($result, $result_type);
}
public function insert_id()
{
return mysql_insert_id();
}
protected function starttran()
{
$this->query('BEGIN');
}
protected function endtran($bo)
{
if(!$bo){
$this->query('ROLLBACK');
}else{
$this->query('COMMIT');
}
}
后面还有 30 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
