Well sometimes your question are like from a 12 year old in my feeling.
It's not to downgrade you, but some questions emply that you didn't learn a thing from answers due to the fact that basics like operator and associative arrays are missing in your knowledge.
PHP Code:
header('Content-type: text/plain');
$records = array();
while ($array = mysql_fetch_assoc($result))
{
$records[] = $array;
}
print_r($records);