Reading data from a MySQL database using PHP
There are a couple of ways to use PHP code in WordPress posts and pages. You could use a plugin such as exec-php. It allows PHP code to be included using shortcodes. The problem I found with this plugin is that in can be difficult (or at least not obvious) to figure out what directory…