2008/10/22
| |
$array 是存储返回内容集的变量名字

mysql_fetch_row 返回的要用
$array[0],$array[1]…… 这样的格式调用

mysql_fetch_array(返回索引数组+关联数组)
即可以用 $array[0],$array[1]…… 这样的格式调用
也可以用 $array['字段名1'],$array['字段名2']…… 这样的格式调用

mysql_fetch_object 返回对象格式
$array->字段名1,$array->字段名2…… 这样调用
Tags:
发表评论
表情
emotemotemotemot
emotemotemotemot
emotemotemotemot
emotemotemotemot
emotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]
               

 
Theme by Marshal. Powered by Bo-Blog 2.1.1 ReleaseCode detection by Bug.Center.Team