php ---處理從mysql查詢的數據(結果集)

使用php的mysql,向mysql查詢,返回的是一個資源,有4個函數能夠進行處理。php 1.mysql_fetch_row()mysql 2.mysql_fetch_assoc()web 3.mysql_fetch_array()sql 4.mysql_fetch_object()數組 1.mysql_fetch_row():返回一個索引數組,即從返回值你不能知道列(字段)名稱,它只記錄第幾個
相關文章
相關標籤/搜索