Not entirely sure about your request, but I've recently put together some script to pull multiple fields from a table. Maybe it will help.
<?php
require_once ('{pathtofile}/connect.php');
# Select database or tell me why not
mysql_select_db(test) or die('Could not select database. '.mysql_error());
$query = "SELECT quote,author FROM quotes ORDER BY RAND() LIMIT 1";
$result=mysql_query($query) or die("Invalid query: ".mysql_error());
$row = mysql_fetch_array($result);
$quote = $row['quote'];
$author = $row['author'];
echo '<div align="center"><br>';
echo ' <table width="98%" border="0" cellspacing="0" cellpadding="2">';
echo ' <th nowrap bgcolor="#666666" align="left"><font size="-1" face="Arial, Helvetica, sans-serif">',$author,'</font></th>';
echo '<tr><td valign="top" bgcolor="#333333"><font face="Arial, Helvetica, sans-serif" size="2" color="#FFCC99">',$quote,'</font>';
echo ' </td></tr>';
echo ' </table>';
echo '</division>';
mysql_close();
unset($result);
unset($quote);
unset($author);
unset($dbc);
?>
'quote' and 'author' are field names in the table. $row becomes an array variable that represents the selection from the table.
$quote and $author are assigned values equal to the cells in the array $row which can then be manipulated, output, etc.
Hope this helps.