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. Link to comment https://forums.phpfreaks.com/topic/25541-displaying-data-from-a-database/ 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} Link to comment https://forums.phpfreaks.com/topic/25541-displaying-data-from-a-database/#findComment-116564 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.