182x Posted July 19, 2007 Share Posted July 19, 2007 Hey guys, I have two database tables which both have information I am displaying in a html table, however one of these database tables has an additional field called 'temp' so I was wondering what is the best way to decide if temp can be shown or not as it only appears in only one of the database tables but the column temp has to appear in the html table? I am not at a machine where I can currently test this so i was also wondering if this code will work? if (empty($st['temp])) { $temp = "<td>No entry</td>"; } else { $temp = "<td>$display['path']</td>"; } Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 19, 2007 Share Posted July 19, 2007 yeah if you tacted on teh quote you missed on empty($st['temp'])){ Quote Link to comment Share on other sites More sharing options...
182x Posted July 19, 2007 Author Share Posted July 19, 2007 Thanks, so it won't matter that the temp column is not in both database tables? 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.