I want to ask a question.i want to show data in table from database..it works but if no data in database, how i can show "there is no data yet" this is my code :
<table>
<thead>
<th>Test Name</th>
<th>Test Description</th>
</thead>
<?php while ($rec2= mysql_fetch_assoc($result2)) {
?>
<tr>
<td><?php echo $rec2['testName'];?></td>
<td><?php echo $rec2['testDesc'];?></td>
</tr>
<?php } ?>
</table>