Jump to content

empty arrays


fife

Recommended Posts

Im trying to echo certain code if the array returned is empty.  I know for certain the array is empty and it works when its not empty. here is my code

<?php while ($club = mysql_fetch_assoc($qclubs)) {

								if (empty($club)) {echo "<option value='None'>None</option>";}
								else{
								echo"
                                <option value='{$club['groupID']}'>{$club['group']}</option>";
							}}?>

 

Can someone please point out the error of my ways?

Link to comment
https://forums.phpfreaks.com/topic/231603-empty-arrays/
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.