MySQL fetch array adds duplicate values?

后端 未结 3 1652
无人共我
无人共我 2021-01-18 12:59

I am getting this:

Array
(
[0] => 1
[id] => 1
[1] => 778613c4344dbc9565c359c1154c6a18
[session] => 778613c4344dbc9565c359c1154c6a18
[2] => fn
         


        
3条回答
  •  鱼传尺愫
    2021-01-18 13:54

    Try second parameter MYSQL_ASSOC or MYSQL_NUM. MYSQL_BOTH is ued by default, returning with both numberic and field keys.

提交回复
热议问题