求帮忙查错,谢谢 先把中间html的部分去掉看看是否还有报错。如果去掉没有报错,就在html那部分找原因。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 一个可能的原因是你的PHP没有开启短标签功能( short tags) 看者挺怪的两个html, 有公共的头部 尾部等,可以写一个的,只是输出显示不一样罢了另外,写if else语句看的也很怪<?php if( ){?><table>xxxxx</talbe><?php } else{ ?><table>xxxxx</talbe><?php } ?>exit可以考虑不用,在这里没什么大用 129 行的 <?改为 <?php <?php/*---------------------------------------------------- [dzsw] includes/db_mysql_error.php ----------------------------------------------------*/if(!defined('DIR_dzsw')) { exit('Access Denied');}global $timestamp, $settings;$dberror = $this->error();$dberrno = $this->errno();if($dberrno == 1114) {?><html><head><style type="text/css">body{ scrollbar-base-color: #32679D; scrollbar-arrow-color: #C3D2E9; font-size: 12px; background-color: #FFB202; margin: 6px;}table{ font-family: Tahoma, Verdana; color: #000000; font-size: 12px }.tableout{ background: #4277AD; border: 0px solid #7CA5DE;}.bgcolor1{ background-color : #FFFFFF;}</style><title>Max onlines reached</title></head><body leftmargin="6" topmargin="6"><table bgcolor="#FFFFFF" bordercolor="#FFFFFF" width="88%" cellpadding="1" cellspacing="6" border="1" align="center" height="100%"><tr> <td height="100%"> <table cellpadding="4" cellspacing="1" border="0" width="500" align="center" class="tableout"> <tr class="bgcolor1"> <td> <br> <b style="font-size: 13px;"> Notice: WebShop onlines reached the upper limit. </b> <br> <br> <br> Sorry, the number of online visitors has reached the upper limit. <br> Please wait for someone else going offline or visit us in idle hours. <br> <br> </td> </tr> </table> </td></tr></table></body></html><?php exit;} else {?><html><head><style type="text/css">body{ scrollbar-base-color: #32679D; scrollbar-arrow-color: #C3D2E9; font-size: 12px; background-color: #FFB202; margin: 6px;}table{ font-family: Tahoma, Verdana; color: #000000; font-size: 12px }.tableout{ background: #4277AD; border: 0px solid #7CA5DE;}.bgcolor1{ background-color : #FFFFFF;}</style><title>Mysql error!</title></head><body leftmargin="6" topmargin="6"><table bgcolor="#FFFFFF" bordercolor="#FFFFFF" width="100%" cellpadding="1" cellspacing="6" border="1" align="center" height="100%"><tr> <td height="100%"> <table cellpadding="4" cellspacing="1" border="0" width="500" align="center" class="tableout"> <tr class="bgcolor1"> <td> <br><font style="font-size: 13px;"> <b>Time:</b> <?php =gmdate("Y-n-j H:i:s", $timestamp + ($settings['time_offset'] * 3600))?><br><br> <b>Script: </b> <?php echo $GLOBALS['_SERVER']['REQUEST_URI'];?><br><br> <?php if($sql){ ?> <b>SQL: </b> <?php =htmlspecialchars($sql)?><br><br> <?php } ?> <b>Error: </b> <?php =$dberror?><br><br> <b>Errno: </b> <?php =$dberrno?><br><br> </font><br> </td> </tr> </table> </td></tr></table></body></html>我现在把后面的exit删掉了,报Parse error: parse error in E:\PHP\wamp\www\includes\db_mysql_error.php on line 113 把短标签改成完整标签之后,之前所有的<?= $aaaa 都应该替换为 <?php echo $aaaa wamp2.0会影响ediplus写的文件吗?wamp2.0是否实用? 模拟POST JSON问题! php 谁能解密一下 如何比较两个库中的数据 求一正则 数据库连接出错 PHP 把数组更新到数库里如何操作 php 正则表达式 请问PHP时间函数的问题。 session问题 既然分目录存储比不分目录存储还要慢为什么还要分目录? 一个PHP页面中有多条查询语句,导致页面打开速度特别慢,怎么办
另外,写if else语句看的也很怪<?php if( ){?>
<table>
xxxxx
</talbe>
<?php } else{ ?>
<table>
xxxxx
</talbe>
<?php } ?>
exit可以考虑不用,在这里没什么大用
改为 <?php
<?php/*----------------------------------------------------
[dzsw] includes/db_mysql_error.php ----------------------------------------------------*/if(!defined('DIR_dzsw')) {
exit('Access Denied');
}
global $timestamp, $settings;
$dberror = $this->error();
$dberrno = $this->errno();if($dberrno == 1114) {?>
<html>
<head>
<style type="text/css">
body{
scrollbar-base-color: #32679D;
scrollbar-arrow-color: #C3D2E9;
font-size: 12px;
background-color: #FFB202;
margin: 6px;
}
table{
font-family: Tahoma, Verdana;
color: #000000;
font-size: 12px
}
.tableout{
background: #4277AD;
border: 0px solid #7CA5DE;
}
.bgcolor1{
background-color : #FFFFFF;
}
</style>
<title>Max onlines reached</title>
</head>
<body leftmargin="6" topmargin="6">
<table bgcolor="#FFFFFF" bordercolor="#FFFFFF" width="88%" cellpadding="1" cellspacing="6" border="1" align="center" height="100%">
<tr>
<td height="100%"> <table cellpadding="4" cellspacing="1" border="0" width="500" align="center" class="tableout">
<tr class="bgcolor1">
<td>
<br>
<b style="font-size: 13px;">
Notice: WebShop onlines reached the upper limit.
</b>
<br>
<br>
<br>
Sorry, the number of online visitors has reached the upper limit.
<br>
Please wait for someone else going offline or visit us in idle hours.
<br>
<br>
</td>
</tr>
</table> </td>
</tr>
</table>
</body>
</html>
<?php
exit;} else {?>
<html>
<head>
<style type="text/css">
body{
scrollbar-base-color: #32679D;
scrollbar-arrow-color: #C3D2E9;
font-size: 12px;
background-color: #FFB202;
margin: 6px;
}
table{
font-family: Tahoma, Verdana;
color: #000000;
font-size: 12px
}
.tableout{
background: #4277AD;
border: 0px solid #7CA5DE;
}
.bgcolor1{
background-color : #FFFFFF;
}
</style>
<title>Mysql error!</title>
</head>
<body leftmargin="6" topmargin="6">
<table bgcolor="#FFFFFF" bordercolor="#FFFFFF" width="100%" cellpadding="1" cellspacing="6" border="1" align="center" height="100%">
<tr>
<td height="100%">
<table cellpadding="4" cellspacing="1" border="0" width="500" align="center" class="tableout">
<tr class="bgcolor1">
<td>
<br><font style="font-size: 13px;"> <b>Time:</b> <?php =gmdate("Y-n-j H:i:s", $timestamp + ($settings['time_offset'] * 3600))?><br><br>
<b>Script: </b> <?php echo $GLOBALS['_SERVER']['REQUEST_URI'];?><br><br>
<?php if($sql){ ?>
<b>SQL: </b> <?php =htmlspecialchars($sql)?><br><br>
<?php } ?>
<b>Error: </b> <?php =$dberror?><br><br>
<b>Errno: </b> <?php =$dberrno?><br><br>
</font><br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>我现在把后面的exit删掉了,报Parse error: parse error in E:\PHP\wamp\www\includes\db_mysql_error.php on line 113