SkyRanger Posted September 9, 2007 Share Posted September 9, 2007 Ok, I am not sure if I have been looking at too much code today or what, here is the problem I am having. If a entry is there then show it, if not show nothing, and remove the white space. Example: id - 1 topic - Topic Here note - Short note here extnote - Extended note here poster - Persons Name So It would be: Topic Here Short note here Extended note here By: Persons Name What I can't get to work is if extnote is empty and have it just go: Topic here Short note here By: Persons Name The problem I am having is that it goes: Topic here Short note here By: Persons Name Anybody have any ideas on how I can fix this? Quote Link to comment https://forums.phpfreaks.com/topic/68545-solved-there-or-not-there/ Share on other sites More sharing options...
Fadion Posted September 9, 2007 Share Posted September 9, 2007 Shouldnt it be like: if($values['extnote'] != ''){ echo $values['extnote']; } Quote Link to comment https://forums.phpfreaks.com/topic/68545-solved-there-or-not-there/#findComment-344576 Share on other sites More sharing options...
SkyRanger Posted September 9, 2007 Author Share Posted September 9, 2007 D'oh yeah that was it, stupid me forgot to put in the ! before the =. Thanks GuiltyGear Quote Link to comment https://forums.phpfreaks.com/topic/68545-solved-there-or-not-there/#findComment-344582 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.