I'm using version 4.1.2 win32
Nav object being created and executed is:
<?php
$nav = new navbar;
$nav->numrowsperpage = 1;
$sql = "SELECT url, caption FROM photos ORDER BY date ";
$result = $nav->execute($sql, $db, "mysql");
$rows = mysql_num_rows($result);
for ($y = 0; $y < $rows; $y++) {
$data = mysql_fetch_object($result);
echo $data->url . "<br>\n";
}
echo "<hr>\n";
$links = $nav->getlinks("all", "on");
for ($y = 0; $y < count($links); $y++) {
echo $links[$y] . " ";
}
?>
Regarding the previous reply, I think the dollar sign is omitted from the variable, so it should read as I had it. ie
$numtoshow = this->numrowsperpage;
"Not sure but ehh.. shouldn't: $numtoshow = $this->numrowsperpage; "
Appreciate any further help
David