我使用的是PHP版本7.1,当我尝试运行一些代码时,当前出现以下PHP错误:
Syntax Error, unexpected T_FUNCTION
function createCadReport($userid,$incident,$cad,$located,$otherUnits,$arrested,$person,$arrestedFor,$foundItems,$whatHappened)
{
global $con;
$q = $con->query("INSERT INTO reports VALUES(NULL,'{$userid}','{$incident}','{$cad}','{$located}','{$otherUnits}','{$arrested}','{$person}','{$arrestedFor}','{$foundItems}','{$whatHappened}'," . time() . ")");
return;
}
我是PHP新手,将为您提供任何帮助!
谢谢!