Home  >  Article  >  Backend Development  >  求帮忙查错,多谢

求帮忙查错,多谢

WBOY
WBOYOriginal
2016-06-13 12:15:17829browse

求帮忙查错,谢谢
各位好,我对PHP不太懂,在网上拉了一个项目,试用wampserver运行的时候,貌似有语法错误编译不通过。看了半天没看出来,烦劳各位帮个小忙,谢谢。

Parse error: parse error in E:\PHP\wamp\www\includes\db_mysql_error.php on line 132

<?php<br /><br />/*----------------------------------------------------<br />	[dzsw] includes/db_mysql_error.php <br /><br />----------------------------------------------------*/<br /><br />if(!defined('DIR_dzsw')) {<br />    exit('Access Denied');<br />}<br />global $timestamp, $settings;<br />$dberror = $this->error();<br />$dberrno = $this->errno();<br /><br />if($dberrno == 1114) {<br /><br />?><br /><html><br /><head><br /><style type="text/css"><br />body{ <br />	scrollbar-base-color: #32679D; <br />	scrollbar-arrow-color: #C3D2E9; <br />	font-size: 12px; <br />	background-color: #FFB202;<br />	margin: 6px;<br />}<br />table{ <br />	font-family: Tahoma, Verdana; <br />	color: #000000; <br />	font-size: 12px <br />}<br />.tableout{ <br />	background: #4277AD; <br />	border: 0px solid #7CA5DE;<br />}<br />.bgcolor1{<br />	background-color : #FFFFFF;<br />}<br /></style><br /><title>Max onlines reached</title><br /></head><br /><body leftmargin="6" topmargin="6"><br /><table bgcolor="#FFFFFF" bordercolor="#FFFFFF" width="88%" cellpadding="1" cellspacing="6" border="1" align="center" height="100%"><br /><tr><br />	<td height="100%"><br /><br />		<table cellpadding="4" cellspacing="1" border="0" width="500" align="center" class="tableout"><br />		<tr class="bgcolor1"><br />			<td><br />				<br><br />					<b style="font-size: 13px;"><br />					Notice: WebShop onlines reached the upper limit.<br />					</b><br />					<br><br />					<br><br />					<br><br />					Sorry, the number of online visitors has reached the upper limit.<br />					<br><br />					Please wait for someone else going offline or visit us in idle hours.<br />					<br><br />					<br><br />	<br />			</td><br />		</tr><br />		</table><br /><br />	</td><br /></tr><br /></table><br /></body><br /></html><br /><?<br />	exit;<br /><br />} else {<br /><br />?><br /><html><br /><head><br /><style type="text/css"><br />body{ <br />	scrollbar-base-color: #32679D; <br />	scrollbar-arrow-color: #C3D2E9; <br />	font-size: 12px; <br />	background-color: #FFB202;<br />	margin: 6px;<br />}<br />table{ <br />	font-family: Tahoma, Verdana; <br />	color: #000000; <br />	font-size: 12px <br />}<br />.tableout{ <br />	background: #4277AD; <br />	border: 0px solid #7CA5DE;<br />}<br />.bgcolor1{<br />	background-color : #FFFFFF;<br />}<br /></style><br /><title>Mysql error!</title><br /></head><br /><body leftmargin="6" topmargin="6"><br /><table bgcolor="#FFFFFF" bordercolor="#FFFFFF" width="100%" cellpadding="1" cellspacing="6" border="1" align="center" height="100%"><br /><tr><br />	<td height="100%"><br />		<table cellpadding="4" cellspacing="1" border="0" width="500" align="center" class="tableout"><br />		<tr class="bgcolor1"><br />			<td><br />				<br><font style="font-size: 13px;"><br /><br />				<b>Time:</b> <?=gmdate("Y-n-j H:i:s", $timestamp + ($settings['time_offset'] * 3600))?><br><br><br />				<b>Script: </b> <?php echo $GLOBALS['_SERVER']['REQUEST_URI'];?><br><br><br />				<?if($sql){?><br />					<b>SQL: </b> <?=htmlspecialchars($sql)?><br><br><br />				<?}?><br />				<b>Error: </b> <?=$dberror?><br><br><br />				<b>Errno: </b> <?=$dberrno?><br><br><br />				</font><br><br />			</td><br />		</tr><br />		</table><br />	</td><br /></tr><br /></table><br /></body><br /></html><br /><?<br />	exit;<br /><br />}<br /><br />?><br />

貌似是在倒数第三行的花括号这,我把括号去掉了也不对。。
------解决思路----------------------
一个可能的原因是你的PHP没有开启短标签功能(  short tags)
------解决思路----------------------
把短标签改成完整标签之后,之前所有的= $aaaa  都应该替换为   

Statement:
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