摘要: 原文链接:http://www.zhixing123.cn/php/32916.html//从结果集中获取所有的数据function getAll($sql) { $query=mysql_query($sql); if($query) { $temp=array(); while($res=mysql_fetch_assoc($query)) { $temp[]=$res; } return $temp;//定义一个空数组用于存储接收到的数据 } else{ return false;... 阅读全文
posted @ 2013-05-06 22:45 回首郑板桥 阅读(656) 评论(0) 推荐(0) 编辑