<table width="900" height="224" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<tr>
<th width="900" height="60" align="left" valign="middle" background="../../search/images/anly_03.gif" bgcolor="99cdff" scope="col">
<table width="747" border="0" align="left" cellpadding="0" cellspacing="0">
<?php
//$code_l = $_GET["codel"];
$code=$_GET['id'];
print ("$code");
$link=@mysql_connect("localhost","root","root") or die ("数据库链接失败".mysql_error());
mysql_select_db("bse",$link);
mysql_query("set names gb2312");
$sql=mysql_query("select * from bse_stm_p where CODE=".$code);
$row=mysql_fetch_array($sql);
if($row==false) {
echo "今日暂无图片!";
}
else{
do{
?>
<tr>
<th width="35" height="28" align="left" valign="middle"> </th>
<th width="107" height="28" align="left" valign="middle"><span class="STYLE25"><?php echo $row['TYPE'];?></span></th>
<th width="129" height="28" align="left" valign="middle"><span class="STYLE25"><?php echo $row['NAME'];?></span></th>
<th width="393" height="28" align="right" valign="middle"><span class="STYLE25"><?php echo $row['DESC'];?></span></th>
</tr>
<tr>
<th width="35" height="28" align="left" valign="middle"> </th> <th height="28" align="left" valign="middle"><span class="STYLE25"><?php echo $row['SET'];?><?php echo $row['CDE_R'];?>
</div>
</span></th>
<th height="28" align="left" valign="middle"><span class="STYLE25">面值:<?php echo $row['PAR'];?>
</div>
</span></th>
<th height="28" align="left" valign="middle"><span class="STYLE25">发行量: <?php echo $row['VOLK'];?> (0为无资料)</span></th>
<td width="20" height="28"></div>
<th width="3" height="28" align="left"><strong></div>
</strong></th>
</tr>
<?php
} while($row=mysql_fetch_array($sql));
}
mysql_close($link);
?>
</table>
从上一个页面链接到这个页面之后,可以获取到ID值,
但是无法显示ID值所对应的其他内容?
请教一下,哪个地方有问题?
$sql=mysql_query("select * from bse_stm_p where CODE='".$code."'");
是不是遇到这样的都要加‘’
但你用个id给人很大的误解 换成code更加形象