出现错误:Fatal error: Call to a member function fetch_array() on a non-object in D:\zhujibao\Domains\bc\yeepay.php on line 134134行的代码是:
while($row = $query->fetch_array()){
?>
<tr onMouseOver="this.style.backgroundColor='#C0E0F8'" onMouseOut="this.style.backgroundColor='#FFFFFF'" style="background-color:#FFFFFF;">
<td width="5%" align="center"><?=$row['ID']?></td>
<td width="15%" align="center">
<? if($row['Switch']==0){ ?>
<a href="yeepay.php?action=open&id=<?=$row['ID']?>">启用</a>
<? }else{ ?>
<a href="yeepay.php?action=close&id=<?=$row['ID']?>"><font color="#FF0000"><b>停用</b></font></a>
<? } ?>
| <a href="yeepay.php?action=mod&id=<?=$row['ID']?>">修改</a> | <a href="yeepay.php?action=del&id=<?=$row['ID']?>">删除</a></td>
<td width="20%"><div style="float:left;"><?=$row['Address']?></div></td>
<td width="15%" ><div style="float:left;"><?=$row['Business']?></div></td>
<td width="40%"><div style="float:left;"><?=$row['Keys']?></div></td>
</tr>
<?
if(@$_GET["action"]=="mod" && $_GET["id"]==$row['ID']){
$website['Address']=$row['Address'];
$website['Business']=$row['Business'];
$website['Keys']=$row['Keys'];
}
}
?>各位大哥们帮帮小弟啊!!
while($row = $query->fetch_array()){
?>
<tr onMouseOver="this.style.backgroundColor='#C0E0F8'" onMouseOut="this.style.backgroundColor='#FFFFFF'" style="background-color:#FFFFFF;">
<td width="5%" align="center"><?=$row['ID']?></td>
<td width="15%" align="center">
<? if($row['Switch']==0){ ?>
<a href="yeepay.php?action=open&id=<?=$row['ID']?>">启用</a>
<? }else{ ?>
<a href="yeepay.php?action=close&id=<?=$row['ID']?>"><font color="#FF0000"><b>停用</b></font></a>
<? } ?>
| <a href="yeepay.php?action=mod&id=<?=$row['ID']?>">修改</a> | <a href="yeepay.php?action=del&id=<?=$row['ID']?>">删除</a></td>
<td width="20%"><div style="float:left;"><?=$row['Address']?></div></td>
<td width="15%" ><div style="float:left;"><?=$row['Business']?></div></td>
<td width="40%"><div style="float:left;"><?=$row['Keys']?></div></td>
</tr>
<?
if(@$_GET["action"]=="mod" && $_GET["id"]==$row['ID']){
$website['Address']=$row['Address'];
$website['Business']=$row['Business'];
$website['Keys']=$row['Keys'];
}
}
?>各位大哥们帮帮小弟啊!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货