Tanks for the share thought this code need allot of more fixes..
It helps if you Replace print with echo.
Also you can make a separate page for proxy category if you want $query = "SELECT * FROM submission WHERE category Like 'Glype';"; These options are endless you can make proxy pages order by date etc... good for
seo