Can someone tell me if this is even possible?
Posted: Mon Mar 08, 2010 10:40 am
Hi - I have a table in a php page where these are the first two rows:
<tr>
<td><span class="style2">Artist</span></td>
</tr>
<tr>
<td><span class="style8">
<?php if ($totalRows_rsRecRes > 0) { // Show if recordset not empty ?>
<?php echo $row_rsRecordings['recordingartistName']; ?>
<?php } // Show if recordset not empty ?></span></td>
</tr>
basically what I want to be able to do is to hide the header (Artist) if the database field that should populate the second row (recordingartistName) is empty. Is it possible to do this in PHP and if so, could some good samaritan show me using the above code how I'd go about doing it, please? I'd be forever grateful. Thanks.
<tr>
<td><span class="style2">Artist</span></td>
</tr>
<tr>
<td><span class="style8">
<?php if ($totalRows_rsRecRes > 0) { // Show if recordset not empty ?>
<?php echo $row_rsRecordings['recordingartistName']; ?>
<?php } // Show if recordset not empty ?></span></td>
</tr>
basically what I want to be able to do is to hide the header (Artist) if the database field that should populate the second row (recordingartistName) is empty. Is it possible to do this in PHP and if so, could some good samaritan show me using the above code how I'd go about doing it, please? I'd be forever grateful. Thanks.