Code: Select all
$result = mysql_query("SELECT firstName, lastName, FROM people");
echo "<table>";
while($dbResult = mysql_fetch_array($result)) {
echo "<tr><td>".$dbResult['0']."</td>";
echo "<td>".$dbResult['1']."</td></tr>";
}
echo "</table>";so I'm assuming this is an instance of "both"?mysql_fetch_array -- Fetch a result row as an associative array, a numeric array, or both
Are there advantages/disadvantages to using one over the other?