oops this is what it's echoing
PHP Code:
// how many rows we have in database
$query = "SELECT COUNT(ID) AS Number FROM TsundereOrNot";
$result = mysql_query($query) or die('Error, query failed');
$row = mysql_fetch_assoc($result);
$numrows = $row['Number'];
instead of what you intended to
PHP Code:
$query = "SELECT ID, Shoujo, Rank, Average, TotalVotes, FivePoints, FourPoints, ThreePoints, TwoPoints, OnePoints, DateUpdated FROM TsundereOrNot ORDER BY ID DESC LIMIT $offset, $rowsPerPage";
$result = mysql_query($query) or die('Error, query failed');
change the ordering of the queries or requery the SELECT of the actual table after the count