当前位置:Gxlcms > PHP教程 > Parseerror:syntaxerror,unexpected'['inC:AppServwwwgenerate_order.ph

Parseerror:syntaxerror,unexpected'['inC:AppServwwwgenerate_order.ph

时间:2021-07-01 10:21:17 帮助过:7人阅读

这个问题出在哪里??
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"];

好,十分感谢!

人气教程排行