PHP参数不足,期待是 2。
连接数据库写数据时出现的CS.php:<?phpinclude"SJKKZ.php";$db=@newmdbClass;$db->aryChar="ID,Zcm,DqSj...
连接数据库写数据时出现的
CS.php:
<?php
include "SJKKZ.php";
$db=@new mdbClass;
$db->aryChar = " ID , Zcm , DqSj , Jqm";
$db->aryText = "$UsID , $UsZCM , $UsDQ , $UsJQM";
$db->setData();
echo $db->showMessage; //返回提示内容,调试时可开启
?>
//写入数据
function setData(){
$this->conn();
$this->conn->execute("insert into $this->tabName ($this->aryChar) values($this->aryText)");
$this->showMessage = $this->siteCode[2];
$this->conn_close();
}
参数不足,期待是 2。' in F:\WWWROOT\SJKKZ.php:54 Stack trace: #0 F:\WWWROOT\SJKKZ.php(54): com->execute('insert into sjk...') #1 F:\WWWROOT\cs2.php(7): mdbClass->setData() #2 {main} thrown in F:\WWWROOT\SJKKZ.php on line 54
写入数据是SJKKZ.php中的
第54行是 $this->conn->execute("insert into $this->tabName ($this->aryChar) values($this->aryText)"); 展开
CS.php:
<?php
include "SJKKZ.php";
$db=@new mdbClass;
$db->aryChar = " ID , Zcm , DqSj , Jqm";
$db->aryText = "$UsID , $UsZCM , $UsDQ , $UsJQM";
$db->setData();
echo $db->showMessage; //返回提示内容,调试时可开启
?>
//写入数据
function setData(){
$this->conn();
$this->conn->execute("insert into $this->tabName ($this->aryChar) values($this->aryText)");
$this->showMessage = $this->siteCode[2];
$this->conn_close();
}
参数不足,期待是 2。' in F:\WWWROOT\SJKKZ.php:54 Stack trace: #0 F:\WWWROOT\SJKKZ.php(54): com->execute('insert into sjk...') #1 F:\WWWROOT\cs2.php(7): mdbClass->setData() #2 {main} thrown in F:\WWWROOT\SJKKZ.php on line 54
写入数据是SJKKZ.php中的
第54行是 $this->conn->execute("insert into $this->tabName ($this->aryChar) values($this->aryText)"); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询