<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center"><img src="images/main_21.gif" width="156" height="33" /></td>
</tr>
<tr>
<td height="30" align="center" bgcolor="#98CACD">网站信息管理</td>
</tr>
<?php
$a=$_GET["id"];
include("../admin/include.php");
$query="select * from `china-oil.mobi`.`qiye` WHERE `xulie` = $a";
$result=mysql_query($query,$id);
while($info=mysql_fetch_array($result,MYSQL_ASSOC)){
?>
<tr>
<td height="30" align="center"><img src="images/1.gif" width="9" height="9" /> <a href="gsjs/gsjs.php?id=<?php echo $info["id"]?>" target="main">公司介绍</a></td>
</tr>
<tr>
<td height="30" align="center"><img src="images/2.gif" width="9" height="9" /> <a href="gqfw/gqfw.php?id=<?php echo $info["name"]?>" target="main">供求服务</a></td>
</tr>
<tr>
<td height="30" align="center"><img src="images/3.gif" width="9" height="9" /> <a href="zsdl/zsdl.php?id=<?php echo $info["name"]?>" target="main">招商代理</a></td>
</tr>
<tr>
<td height="30" align="center"><img src="images/4.gif" width="9" height="9" /> <a href="ppxc/ppxc.php?id=<?php echo $info["name"]?>" target="main">品牌秀场</a></td>
</tr>
<tr>
<td height="30" align="center"><img src="images/5.gif" width="9" height="9" /> <a href="lxfs/lxfs.php?id=<?php echo $info["id"]?>" target="main">联系方式</a></td>
</tr>
<?php }?>
<?php
mysql_close($id)
?>
</table>
<tr>
<td align="center"><img src="images/main_21.gif" width="156" height="33" /></td>
</tr>
<tr>
<td height="30" align="center" bgcolor="#98CACD">网站信息管理</td>
</tr>
<?php
$a=$_GET["id"];
include("../admin/include.php");
$query="select * from `china-oil.mobi`.`qiye` WHERE `xulie` = $a";
$result=mysql_query($query,$id);
while($info=mysql_fetch_array($result,MYSQL_ASSOC)){
?>
<tr>
<td height="30" align="center"><img src="images/1.gif" width="9" height="9" /> <a href="gsjs/gsjs.php?id=<?php echo $info["id"]?>" target="main">公司介绍</a></td>
</tr>
<tr>
<td height="30" align="center"><img src="images/2.gif" width="9" height="9" /> <a href="gqfw/gqfw.php?id=<?php echo $info["name"]?>" target="main">供求服务</a></td>
</tr>
<tr>
<td height="30" align="center"><img src="images/3.gif" width="9" height="9" /> <a href="zsdl/zsdl.php?id=<?php echo $info["name"]?>" target="main">招商代理</a></td>
</tr>
<tr>
<td height="30" align="center"><img src="images/4.gif" width="9" height="9" /> <a href="ppxc/ppxc.php?id=<?php echo $info["name"]?>" target="main">品牌秀场</a></td>
</tr>
<tr>
<td height="30" align="center"><img src="images/5.gif" width="9" height="9" /> <a href="lxfs/lxfs.php?id=<?php echo $info["id"]?>" target="main">联系方式</a></td>
</tr>
<?php }?>
<?php
mysql_close($id)
?>
</table>
后加echo mysql_error();查看是不是sql语句有问题?
error_reporting(E_ALL ^ E_NOTICE);//这里改下看看,或者放在最前面看看有没有错.$a=$_GET["id"];
include("../admin/include.php");
$query="select * from `china-oil.mobi`.`qiye` WHERE `xulie` = $a";
$result=mysql_query($query,$id);
while($info=mysql_fetch_array($result,MYSQL_ASSOC)){
?> 还有你的问题描述的不清白,没有人能帮到你.
这上面的php语法应该没错.
(sdjncjc) 等 级:
结帖率:15.38% 偶的神啊,你牛B