I'm not sure why things are working and what not.
<?php if ($totalRows_Contents == 0) { // Show if recordset empty ?>
Content is not available at this time.
<?php } // Show if recordset empty ?>
I want the line "content is not avail..." to show but this line does not show up when record is empty. Suggest?
On the other hand,
<?php if ($totalRows_Contents > 0) { // Show if recordset not empty ?>
<h1 class="title">Article</h1>
<?php echo $row_Contents['columnName']; ?>
<?php } // Show if recordset not empty ?>
When record is available, it shows up which is good. And, when it is not available, it does not show, also good. But, I also want <h1 class="title">Article</h1> and such other stuff within the area NOT to show when record is empty. The title part shows when a record is empty. How does one do it?
Thanks much in advance.