Welcome Guest, Not a member yet? Register   Sign In
for loops in model that return an array
#3

[eluser]face1m[/eluser]
Thank you very much. You know i read about those db functions and building queries. However, I didn't put 2 and 2 together. Thanks for your help. Additionally, I'm now trying to loop through that array inside another loop.
<?php

echo "<table id=\"table\" class=\"sortable\"><thead><tr><th ><h3>Powerball Number</h3></th><th ><h3>Times Drawn</h3></th></tr></thead><tbody>";
for ( $i = 1; $i <= 39; $i++ ) {

echo "<tr ><td width=\"50%\">" . $i . "</td>" . "<td>" . $pball[$i] . "</td></tr>";
}
echo "</tbody></table>";
?&gt;
The above prints out the powerball numbers col ok. However, for the times drawn col. it prints out 1 for all pball. Hmm. Any ideas. thanks in advance.

rick mcelderry


Messages In This Thread
for loops in model that return an array - by El Forum - 02-08-2010, 04:46 PM
for loops in model that return an array - by El Forum - 02-08-2010, 05:49 PM
for loops in model that return an array - by El Forum - 02-08-2010, 07:17 PM
for loops in model that return an array - by El Forum - 02-08-2010, 07:24 PM
for loops in model that return an array - by El Forum - 02-08-2010, 07:26 PM
for loops in model that return an array - by El Forum - 02-08-2010, 07:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB