mysql_fetch_array returns duplicate data

前端 未结 7 1436
谎友^
谎友^ 2020-12-02 00:25

every time i run mysql_fetch_array an array is returned with duplicate values e.g.

Array
(
    [0] => 1
    [row_id] => 1
    [1] =>         


        
相关标签:
7条回答
  • 2020-12-02 01:23

    mysql_fetch_array returns resultset returned as as response to query execution as both associative and numeric arrays. For returning resultset as associative array you need to use mysql_fetch_assoc function. For returning resultset as numeric array you need to use mysql_fetch_row function.

    0 讨论(0)
提交回复
热议问题