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
I tend to like:
$posts = array(); while ($row = mysql_fetch_array($result)) { $posts[] = array( 'id' => $row['id'], 'title' => $row['title'], 'text' => $row['text'] ); }