For each result in MySQL query, push to array (complicated)

后端 未结 3 1187
感情败类
感情败类 2021-01-29 00:45

Okay, here\'s what I\'m trying to do. I am running a MySQL query for the most recent posts. For each of the returned rows, I need to push the ID of the row to an array, then wit

3条回答
  •  -上瘾入骨i
    2021-01-29 01:08

    here you have the complete reference for arrays, anyway a common way to do this is to use $myarray[] = $aa; to "push" into it.

        
    

提交回复
热议问题