站长资源网络编程
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_
复制代码 代码如下:
$id = intval($_GET['id']);
$row = $db->getResult($db->query("select * from ".$t."product where id=$id;"));
$rows = $row[0];//处理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!
上一篇:php join函数应用
下一篇:drupal 代码实现URL重写