I would like to create a template that will show the results of a PHP page. I have tried to insert the code into the HTML of the template but every time I save the template it saves the code so that it will not work. Is there a way I can include a link and have it work that way? Here is a sample of what I want to do:
<?php
include ('/var/www/html/Reports/baaGrid.php');
//******************************************************
// Connection to the Database
//******************************************************
$conn = mysql_connect("localhost", "root", "secret");
mysql_select_db ('asterisk',$conn);
//******************************************************
$sql = "SELECT `extension`,`name` FROM `users` order by extension" ;
//************End Query****************
$grid = new baaGrid ($sql);
$grid->setAlign(0,L);
$grid->setAlign(1,C);
$grid->setHeaderClass('head1');
$grid->setHeadings("Extension #, Username");
$grid->display();
?>