Hide null from database and...
i'm setting dynamic content display regions database. when displays in window might (the italic indicates information database driven).
name: joe brown
phone: 555-555-5555
website:
poor joe not have website, thing want when database not have reference website want remove text "website:". using repeating regions , have websites have have there if database has info. easy way include text in actual database there has better way.
i using php.
thank in advance replies.
name: joe brown
phone: 555-555-5555
website:
poor joe not have website, thing want when database not have reference website want remove text "website:". using repeating regions , have websites have have there if database has info. easy way include text in actual database there has better way.
i using php.
thank in advance replies.
try this: first set database "website" field default null
<?
if ( $website == null) {
echo "<div>nothing here</div> ";
}
else {
echo " website : $website_url";
}
?>
you can reverse , write content want that's pretty simple. if you're working more 2 possible field entries require different responses, use "case switch".
happy headaches...
z......
<?
if ( $website == null) {
echo "<div>nothing here</div> ";
}
else {
echo " website : $website_url";
}
?>
you can reverse , write content want that's pretty simple. if you're working more 2 possible field entries require different responses, use "case switch".
happy headaches...
z......
More discussions in Dynamic HTML General Discussion (read only)
adobe
Comments
Post a Comment