mysql query result into php array

前端 未结 3 1691
灰色年华
灰色年华 2020-12-31 10:31

Some code here, I want store mysql query result into an array with php, but my code return result: 2h, not what I wish.(the correct result should be 36,35,34,33

3条回答
  •  醉话见心
    2020-12-31 10:37

    Use mysql_fetch_assoc instead of mysql_fetch_array

    http://php.net/manual/en/function.mysql-fetch-assoc.php

提交回复
热议问题