欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

Parse error: syntax error, unexpected '[' in C:AppServwwwgenerate_order.ph

程序员文章站 2022-05-18 16:10:19
...
这个问题出在哪里??
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"];

好,十分感谢!