I was wondering if you could condition the generation of an html table with php.
So far I know this works:
<?php do { ?>
<table>
</table>
<?php } while (); ?>
But what about this for example?
<?php if ($rows_query <= 0) {echo "Query rows are empty";} else { do { ?>
<table>
</table>
<?php } while (); } ?>
Thanks in advance
So far I know this works:
<?php do { ?>
<table>
</table>
<?php } while (); ?>
But what about this for example?
<?php if ($rows_query <= 0) {echo "Query rows are empty";} else { do { ?>
<table>
</table>
<?php } while (); } ?>
Thanks in advance