Parse error: syntax error, unexpected '[' in C:AppServwwwgenerate_order.ph,该怎么处理

WBOY
Release: 2016-06-13 12:18:32
Original
1345 people have browsed it

Parse error: syntax error, unexpected '[' in C:\AppServ\www\generate_order.ph
这个问题出在哪里??

if (! $dsql->ExecuteNoneQuery ( $inQuery )) {<br />	ShowMsg ( 'Database error!', '-1' );<br />	exit ();<br />}<br /><br />$mid = $dsql->GetOne ( "SELECT * FROM `#@__im_order` WHERE email = '$email' ORDER BY order_id desc" )["order_id"];<br />$OrdId = $mid;
Copy after login


------解决思路----------------------
你的 php 版本低于 5.4

改为
$mid = $dsql->GetOne ( "SELECT * FROM `#@__im_order` WHERE email = '$email' ORDER BY order_id desc" );
$OrdId = $mid["order_id"];

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template