function Update()
{
global $_SESSION['sId'],$_SESSION['sName'],$_SESSION['sPirce'],//
这一行提示有错parse error, unexpected '[', expecting ',' or ';'
但是没有看出什么错?
关注ing !!!!!!
{
global $_SESSION['sId'],$_SESSION['sName'],$_SESSION['sPirce'],//
这一行提示有错parse error, unexpected '[', expecting ',' or ';'
但是没有看出什么错?
关注ing !!!!!!
在用之前先把session中的变量取出来再操作吧。
global $_SESSION['sId'] , $_SESSION['sName'] , $_SESSION['sCount']
的那些行都出错。错误提示为:
parse error, unexpected '[', expecting ',' or ';'
注意
If you are using $HTTP_SESSION_VARS/$_SESSION and disable register_globals, do not use session_register(), session_is_registered() and session_unregister(). If you enable register_globals, session_unregister() should be used since session variables are registered as global variables when session data is deserialized. Disabling register_globals is recommended for both security and performance reason. 关注高手提供合理的的解决方法!!!!