techker Posted December 7, 2010 Share Posted December 7, 2010 Hey guys i have a query echo (empty($row['deal'])? "empty": "not empty"); //result not empty but i need it to show the "not empty" if its "deal". by default it is a "1" when i select the row to be a deal it updates the table and inserts "Deal". Link to comment https://forums.phpfreaks.com/topic/220885-empty-row-show-image/ Share on other sites More sharing options...
Pikachu2000 Posted December 7, 2010 Share Posted December 7, 2010 So what seems to be the problem? Link to comment https://forums.phpfreaks.com/topic/220885-empty-row-show-image/#findComment-1143800 Share on other sites More sharing options...
techker Posted December 7, 2010 Author Share Posted December 7, 2010 it only shows if it is empty..but its not by default i have a 1 in it. so it would be if "deal" show image.. or if table ==deal show.. Link to comment https://forums.phpfreaks.com/topic/220885-empty-row-show-image/#findComment-1143805 Share on other sites More sharing options...
Pikachu2000 Posted December 7, 2010 Share Posted December 7, 2010 echo $row['deal'] == 'deal' ? "Not empty": "Empty"; Link to comment https://forums.phpfreaks.com/topic/220885-empty-row-show-image/#findComment-1143853 Share on other sites More sharing options...
techker Posted December 7, 2010 Author Share Posted December 7, 2010 nice thx i will try it out. Link to comment https://forums.phpfreaks.com/topic/220885-empty-row-show-image/#findComment-1143945 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.