首页 > 编程 > PHP > 正文

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

2019-11-22 01:00:00
字体:
来源:转载
供稿:网友
复制代码 代码如下:

$id = intval($_GET['id']);
$row = $db->getResult($db->query("select * from ".$t."product where id=$id;"));
$rows = $row[0];//处理mysql_fetch_assoc返回来的数组 不用foreach----echo!
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表