Julian Posted May 8, 2007 Share Posted May 8, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/50524-loop-mysql-results/ Share on other sites More sharing options...
Julian Posted May 8, 2007 Author Share Posted May 8, 2007 I found it works. The problem is that for some reason it doesn't read the first record on the DB. Anybody know why? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/50524-loop-mysql-results/#findComment-248254 Share on other sites More sharing options...
per1os Posted May 8, 2007 Share Posted May 8, 2007 Check for a faulty DB entry in the system. Quote Link to comment https://forums.phpfreaks.com/topic/50524-loop-mysql-results/#findComment-248296 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.