If I echo "$equipArr"; I get ArrayArrayArray... 15 times over which is the number of equip_type records there are in my db. However, I have tried everything to pass $equipArr to the Function but no good. I would appreciate if someone would just put me out of my misery. My books mention array(ford, lincoln, mercury) but neglect to explain how this translates to a mysql query result.
Thanks.
while($row = mysql_fetch_array($result))
{
$equipArr[]=$row["equip_type"];
}
?>
<?
Function outputTable()
{
$myArray = $equipArr; // where is the info!!!!!
$noOfRows = 8;
$j = 0;
For($i = 0; $i< $noOfRows; $i++) {
echo "<tr>";
echo "<td>".$myArray[$j]."</td>";
$j++;
echo "<td>".$myArray[$j]."</td>";
echo "</tr>";
$j++;
}
}