从$res获取行数据

1$res获取行数据的时候,处理 mysql_fetch_row($res),还有三个方法.
2 分别是
3 mysql_fetch_row($res)  ,返回一个索引的数组  (推荐.)
4 mysql_fetch_assoc($res)  ,返回一个关联数组
5 mysql_fetch_array($res)  ,返回索引数组和关联数组 (两套)
6 mysql_fetch_object($res) ,把一行数据,当做一个对象返回.

 

posted @ 2015-01-04 22:17  人间最美二月天  阅读(673)  评论(0编辑  收藏  举报