Difference between mysql_fetch_array and mysql_fetch_row?

前端 未结 10 1350
野的像风
野的像风 2020-12-02 08:36

This is a simple question for PHP users. The reason I couldn\'t get the the exact difference between mysql_fetch_array() and mysql_fetch_row() in P

10条回答
  •  遥遥无期
    2020-12-02 09:19

    There are 3 functions. mysql_fetch_assoc mysql_fetch_row mysql_fetch_array (a combination of row and assoc)

    I would recommend _assoc or _row to optimize your code and keep it clear. If you're grabbing a single column, use $row = mysql_fetch_row $row[0]

提交回复
热议问题