Jump to content

Loop Mysql results


Julian

Recommended Posts

Hi guys

 

<?php 	while ($row_calendar = mysql_fetch_assoc($calendar))
									{
								 	echo '<br />';
								 	echo $row_calendar['dia'];
								 	echo '<br />';
								 	} ?>

 

Can anybody tell me why with this request I only obtain 1 record from the DB? I used Select *, no LIMIT and no WHERE, it's supposed to return 10 different numbers but it only shows the last record.  Thanks

Link to comment
https://forums.phpfreaks.com/topic/50524-loop-mysql-results/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.