当前位置:首页 >> 网络编程

php中处理mysql_fetch_assoc返回来的数组 不用foreach----echo

复制代码 代码如下:
$id = intval($_GET['id']);
$row = $db->getResult($db->query("select * from ".$t."product where id=$id;"));
$rows = $row[0];//处理mysql_fetch_assoc返回来的数组 不用foreach----echo!