Parse error: syntax error, unexpected '[' in C:AppServwwwgenerate_order.ph
程序员文章站
2022-05-28 23:25:34
...
这个问题出在哪里??
if (! $dsql->ExecuteNoneQuery ( $inQuery )) { ShowMsg ( 'Database error!', '-1' ); exit ();}$mid = $dsql->GetOne ( "SELECT * FROM `#@__im_order` WHERE email = '$email' ORDER BY order_id desc" )["order_id"];$OrdId = $mid;
回复讨论(解决方案)
你的 php 版本低于 5.4
改为
$mid = $dsql->GetOne ( "SELECT * FROM `#@__im_order` WHERE email = '$email' ORDER BY order_id desc" );
$OrdId = $mid["order_id"];
好,十分感谢!
推荐阅读
-
PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
-
thinkphp6安装报错,composer install tp6 报错 Parse error: syntax error
-
PHP Parse Error: syntax error, unexpected $end 错误的解决办法
-
PHP syntax error, unexpected $end 错误的一种原因及解决
-
PHP异常Parse error: syntax error, unexpected T_VAR错误解决方法
-
Linux 5中出现的-bash: syntax error near unexpected token `('错误
-
代码运作在win5.3.13正常 但是在linux5.2.8 中出现syntax error,unexpected T_STRING
-
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM, expecting 异常怎么解决
-
PHP解析错误 PHP Parse error: syntax error, unexpected '[' in
-
PHP syntax error, unexpected $end 错误的一种原因及解决