+ -
当前位置:首页 → 问答吧 → 处理mysql_fetch_assoc返回来的数组 不用foreach----echo!

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

时间:2011-04-07

来源:互联网

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

作者: so_brave   发布时间: 2011-04-07

看不懂

作者: ws00377531   发布时间: 2011-04-07