I'm trying to print out rushing yards for each week a player played:
This is what I have, but it only echoes "1" for $wk. $rushyard shows all unique values.
$rushyard = $data;
$newweek = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17);
foreach ($newweek as $wk){
foreach ($rushyard as $f) {
echo "<tr><td>$wk</td><td>$f</td></tr>";
}
}
Can someone help
It currently outputs this:
1 108
1 51
1 58
1 0
1 102
1 77
1 101
1 86
1 48
1 94
etc