Thanks deathsemporer.
I'm still getting a divide by zero error though.
PHP Code:
// Define the number of results per pg
$max_results =20;
$from = (($pg * $max_results) - $max_results);
$full1 = $DB_site->query("SELECT * FROM _table_ WHERE _username_ = '".$userinfo['username']."'");
$full=$DB_site->num_rows($full1);
print $full;
$pagenav = construct_page_nav($full, "member.php?$session[sessionurl]u=$userinfo[userid]","&pg=$pg")
The print command is just there for debugging. It prints the proper total results. I'm thinking it may have something to do with my hard coding the per page results at 20. $from is used to limit the queries.