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
$master[$id]['post_title'] = $post_title;
$master[$id]['post_text'] = $post_text;
// etc
or, less code. With this one, you can get rid of where you set all those variables:
$master[$row["id"]]['post_title'] = $row["title"];
$master[$row["id"]]['post_text'] = $row["text"];
// etc
Edit in answer to comment:
foreach( $master as $row )
{
echo $row['post_title'];
}
// or if you know the id
echo $row[$id]['post_title'];