Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION Show <div> only when it contains some content
#3
Thanks XXDEX

I'll give it a try.


(2014-09-01, 18:15:26)xxdex Wrote: try to do it with a simple if
PHP Code:
<?php
$content 
'your content or something what You want to show';
if (
$content != ''){
echo 
'<div>'$content '</div>';
}
?>
Reply


Messages In This Thread
RE: Show <div> only when it contains some content - by meetje - 2014-09-01, 21:03:38



Users browsing this thread: 1 Guest(s)