I want to move my php/mysql based website to wordpress. Most of the content was based on a php script which reads out the full mysql table und prompts them as formatted HTML via mysqli_fetch_array. Since there are plenty of records, there were manually paginated by changing the LIMITs via a variable in the URL. I know that this is not really safe, but I’m not a php-pro
I succeeded to read out my database with a lazyblocks using a PHP block, but I still don’t know how to get the pagination into wordpress. Inserting the nextpage-tag somewhere in my mysqli_fetch_array-loop does not work. Even if it worked, my query should automatically know how to get the next five entries, when I hit the next page. So where and how do I tell my fetch_array-loop and my query to paginate?
Is there any possibility to reuse my database and display it paginated without copy & pasting all records? I don’t care if I can not preview the entries in the block editor, since I’m used to modify the database.
Thank you in advance!