出错函数如下,有懂的大神帮忙看看吗

Fatal error: Non-abstract method LineyardModelList::addLineYard() must contain body in C:\xampp\htdocs\cw2\components\com_lineyard\models\list.php on line 86

这是出错的函数:
function addLineYard($stationID,$trainNumber,$arriveTime,$track,$trainCount,$startStation,$goodsName,$handingClass,$yztzscTime,$yztzzxpbTime,$clsdhcTime,$kszxcTime,$zxcwlTime,$hytzyzzxwlTime ,$clchcqcTime,$clczTime,$dddwTime,$ddzxTime,$zxzyTime,$ddzngyTime,$hcddqsTime,$wjszywlRe,$dutyMan);
{
$sql = <<<EOF
INSERT INTO #__line_yard
VALUES('','$stationID','$trainNumber','$arriveTime','$track','$trainCount','$startStation','$goodsName','$handingClass','$yztzscTime','$yztzzxpbTime','$clsdhcTime','$kszxcTime','$zxcwlTime','$hytzyzzxwlTime','$clchcqcTime','$clczTime','$dddwTime','$ddzxTime','$zxzyTime','$ddzngyTime','$hcddqsTime','$wjszywlRe','$dutyMan');
EOF;
$this -> _dblink -> setQuery($sql);
// var_dump($sql);break;
$queryResult = $this-> _dblink-> query();

if($queryResult){
return 1;
}else{
return 0;
}

}

哆啦的时光机
浏览 108回答 2
2回答

繁花如伊

函数的参数行是不用加分号的,你仔细看。function&nbsp;addLineYard($args)&nbsp;//&nbsp;这不能有分号{&nbsp;&nbsp;&nbsp;&nbsp;...}

四季花海

您好看您的情况应该是这样的,函数的参数行是不用加分号的。
打开App,查看更多内容
随时随地看视频慕课网APP