Pagination of custom mysql in wordpress

Lee, looks like you need to look at OFFSET in MySQL, there is a pretty good explantation here.

You can just multiply the offset by the page number -1 so page 2 will only offset 10 instead of 20 and so on.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)