Sunday, May 21, 2017

php row number auto



<p>The .table-bordered class adds borders to a table:</p>
<table class="table table-bordered">
<thead>
<th>No</th>
<th>DocName</th>
<th>CurrentDate</th>
<th>EmpId</th>
<th>Page</th>
<th>DocFile</th>

</thead>

<tr>
<?php
$no = 1; ?>
<?php
$query = mysql_query("SELECT * FROM hr WHERE (DATE(`currentdate`) = CURDATE()) ORDER BY id DESC") or die(mysql_error());
while ($row = mysql_fetch_array($query)) {
?>


<td><?php echo $no; $no++ ?></td>
<td> <?php echo $row['DocName'] . ''; ?> </td>
<td> <?php echo $row['currentdate'] . ''; ?> </td>
<td> <?php echo $row['EmpId'] . ''; ?> </td>
<td> <?php echo $row['page'] . ''; ?> </td>
<td> <?php echo $row['DocFile'] . ''; ?> </td>

</tr>
<?php }; ?>

</table>
</div>

phprunner view custom filed status

if ($value=="Process") $str.='<img src="1.png">'; if ($value=="Receive") $str.='<i...