cturner Posted October 30, 2006 Share Posted October 30, 2006 Can someone please tell me how I can display the data that has information in it from a database? Only the rows and columns that have data in it. For instance if I have bullets in a database table I only want to display the bullets that have information not having bullets continuing down a page. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
sanfly Posted October 30, 2006 Share Posted October 30, 2006 you could use empty() to determine if there any data, then only echo the rows where there is data includedif(!empty($row['my_data']){ echo $row['my_data'];}else{ // do nothing} Quote Link to comment 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.