Has to be used with an Array
(If there was 4 dates)
1 2 3 4 5 6 |
while($row = mysql_fetch_array($result)) { $date[]= $row['date']; } |
Then as many times as there was a result of $date (in this case 4 times)
1 2 3 4 5 |
foreach ($date as $value) { echo "hi"; } |
The out put would be hihihihi