Creating a table made in php

Hi, I’m currently making a website and I’ve just started learning php. I’ve created a wordpress plugin, however inside that plugin I have a php file with html that I want to display certain table elements to users. The issue I’m having is I don’t know how to display the table on a specific page of my website. In other words how do I get my service to call that php file on certain webpages.

That really depends on the nature of the php file that creates the table. If it is something like a function or class with methods, you would include the file and then call the function where appropriate in the page.
If it’s just a straight procedural “render a table” script, it would be included at the appropriate point in the page script.
But it’s impossible to say without knowing the scripts involved.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.