mysql_fetch_array skipping first row

后端 未结 5 1002
旧巷少年郎
旧巷少年郎 2020-11-30 15:25

EDIT : Thanks for the quick responses guys - I ended up switching to mysql_fetch_assoc() and using a do...while and I am good to go.

I am using this

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 15:30

    $query = "SELECT * FROM members";
    $results = mysql_query($query);
    $row = mysql_fetch_array($results); <-- There's your first row. Remove this.
    

提交回复
热议问题