I want to retrieve data from Database to Html bootstrap table here is my code for php and html both:
<div class="ibox-title">
<h5>Data Tables example</h5>
</div>
<div class="ibox-content">
<table class="table table-striped table-bordered table-hover dataTables-example" >
<thead>
<?php
$con = mysql_connect("localhost","pooling","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("bayansh_bmc", $con);
$result = mysql_query("SELECT * FROM pooling");
while($row = mysql_fetch_array($result))
{
<tr>
<th>Province</th>
</tr>
</thead>
<tbody>
echo "<td>" . $row['Province'] . "</td>";
</tbody>
</table>
mysql_close($con);
?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
it gives me error at line 78 which is echo "";