<?
$linkID = mysql_connect("host", "user", "pass");
$resultIndex = mysql_query("YOUR QUERY", $linkID);
// Now you can fetch an an associative array...
while ($rr = mysql_fetch_array($result_id)) {
echo "<tr>\n<td>" . $rr["column1"] . "</td>\n<td>" . $rr["column2"] . "</td>\n</tr>\n";
}
// ...or a regular array...
while ($rr = mysql_fetch_row($result_id)) {
echo "<tr>\n<td>" . $rr[0] . "</td>\n<td>" . $rr[1] . "</td>\n</tr>\n";
}
?>
HTH,
adam