I have a table that contains a keyword_id, site_id, percentage.
Now I use:
SELECT *
FROM keyword_relations
WHERE keyword_id = "game"
ORDER BY percentage DESC,
LIMIT {$page}, {$limitperpage}
Now lets say on page 26 according to this SQL a website called "example.com" appears.
Now lets say that I want to get the row number where a keyword on example.com, how can I do that.
For example, if example.com is ranked 5th on page 6 for keyword "examples" then how do I get the page number when I have the website "example.com" and the keyword "examples" from a different page.
I am trying to find the page number where the website should appear by dividing the the row number of the ranking of a website for a keyword (sorted by keywords occurrence) by the limit_per_page.