In a while loop I have:
$row = mysql_fetch_array($result)
Held under $row are two arrays which when shown using print_r display the following:
Array ( [4] => Post Content [value] => Post Content ) Array ( [4] => Post Title [value] => Post Title )
How can I choose ‘Post Content’ and ‘Post Title’ from the array without it being repeated in the while loop?
The original version of this question confused the duplication with the problem. The issue is how to extract the second array [value] when they are both held under $row.
Final solution was found by slightly restructuring the original query as per Topbit’s suggestion and the use of two while loops.
Thank you to all those who suggested solutions.