Exemplo n.º 1
0
?>
</div>

<div id="breadcrumbs"> 
	<?php 
/* To execute a query navigation object's funtion is called.  The navigation is defined ib navbar,php */
$result = $nav->execute($sql, $link, "mysql");
$num_rows = mysql_num_rows($result);
/*To count total number of data*/
$Countresult = mysql_query($sql);
$TotalCount = mysql_num_rows($Countresult);
$TotalCount2 = $TotalCount;
$total_records = $TotalCount;
echo '<table width="98%" align="center">';
echo '<tr>';
$links = $nav->getlinks("sides", "on");
/*To count number of data on current page*/
for ($y = 0; $y < count($links); $y++) {
    if ($y / 2 == 0) {
        echo "<td align=\"left\">";
    } else {
        echo " <td align=\"right\">";
    }
    echo $links[$y] . "&nbsp;&nbsp;";
    echo "</td>";
}
echo '</tr>';
echo '</table>';
?>
</div>