<div class="codetitle"> <span><a style="CURSOR: pointer" data="81081" class="copybut" id="copybut81081" onclick="doCopy('code81081')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code81081"> <br>$id = intval($_GET['id']); <br>$row = $db->getResult($db->query("select * from ".$t."product where id=$id;")); <br>$rows = $row[0];//处理mysql_fetch_assoc返回来的数组 不用foreach----echo! <br> </div>