"); // including the navbar class include("./navbar.php"); // initiate it! $nav = new navbar; // set how many records to show at a time $nav->numrowsperpage = 3; $sql = "SELECT * FROM links "; // the third parameter of execute() is optional $result = $nav->execute($sql, $db, "mysql"); // handle the returned result set $rows = mysql_num_rows($result); for ($y = 0; $y < $rows; $y++) { $data = mysql_fetch_object($result); echo $data->url . "
\n"; } echo "
\n"; // build the returned array of navigation links $links = $nav->getlinks("all", "on"); for ($y = 0; $y < count($links); $y++) { echo $links[$y] . "  "; } ?>