技术教程
当前位置:首页 > 技术教程

PHP取出Mysql数据并转换为数组

( 更新:02-23   加入收藏)
代码:

//取商品价格
$price = array();
$sqlprice="select * from goods";
$price_all = $conn->query($sqlprice);
//数组
while ($priget=mysqli_fetch_row($price_all)){
    $price[] = $priget;
}

相关阅读