The difference between fetchAll () and mysql_fetch_array () is described in detail. The same query statement: fetchAll (): Copy the code as follows: array (1) {[0] array (6) {[id] string (2) 15 [0] string (2) 15 [lot_sellid] string (20) 00000000000000003 the same query statement:
FetchAll ():
The code is as follows:
Array (1 ){
[0] => array (6 ){
["Id"] => string (2) "15"
[0] => string (2) "15"
["Lot_sellid"] => string (20) "00000000000000003877"
[1] => string (20) "00000000000000003877"
["Lotteryid"] => string (2) "D8"
[2] => string (2) "D8"
}
}
Mysql_fetch_array ():
The code is as follows:
Array (6 ){
[0] => string (2) "15"
["Id"] => string (2) "15"
[1] => string (20) "00000000000000003877"
["Lot_sellid"] => string (20) "00000000000000003877"
[2] => string (2) "D8"
["Lotteryid"] => string (2) "D8"
}
Invalid fetchAll (): The code is as follows: array (1) {[0] = array (6) {["id"] = string (2) "15" [0] = string (2) "15" ["lot_sellid"] = string (20) "00000000000000003...