当前位置:Gxlcms > PHP教程 > freelaunchbarphp中处理mysql_fetch_assoc返回来的数组不用foreach----echo

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

时间:2021-07-01 10:21:17 帮助过:3人阅读

代码如下:


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

以上就介绍了freelaunchbar php中处理mysql_fetch_assoc返回来的数组 不用foreach----echo,包括了freelaunchbar方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

人气教程排行