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". Quote 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? Quote 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.. Quote 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"; Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/220885-empty-row-show-image/#findComment-1143945 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.