答案: 复制代码 代码如下: $id = intval($_GET['id']); $row = $db->getResult($db->query("select * from ".$t."product where id=$id;")); $rows = $row[0];//处理mysql_fetch_assoc返回来的数组 不用foreach----echo!
上一个:FirePHP 推荐一款PHP调试工具下一个:PHP开发不能违背的安全规则 过滤用户输入