嘿,我的变量有问题。你能帮我吗?
错误:警告:mysqli_real_escape_string()期望参数1为 mysqli,第768行的\ classes.php中给出的null
class TDMCore
{
public $rsSQL;
public $isDBCon;
function DBConnect($DBType = 'MODULE')
{
$S = $this->arConfig[$DBType . '_DB_SERVER'];
$L = $this->arConfig[$DBType . '_DB_LOGIN'];
$P = $this->arConfig[$DBType . '_DB_PASS'];
$DB = $this->arConfig[$DBType . '_DB_NAME'];
$this->rsSQL = mysqli_connect($S, $L, $P, $DB);
$Charset = 'utf8';
if ($this->rsSQL) {
$this->isDBCon = true;
mysqli_set_charset($this->rsSQL, $Charset);
return true;
}
if (substr($S, 0, 12) == 'autodbase.ru') {
$S = 'TDBase';
}
$this->arErrors[] = 'Error! No connection to "' . $S . '" ';
$this->isDBCon = false;
return false;
}
public function Select($DBTable, $arOrder, $arFilter, $arParams = array())
$key = mysqli_real_escape_string($this->rsSQL, $key); - problem line 768
}
答案 0 :(得分:0)
max.contains(rec.split(',')(3))
这应该做