I have a file named sites.php and another file named queries.php
in the sites.php file I’ve written:
include ‘queries.php?qtype=show_sites’;
and in the queries.php file:
$type = $_GET[‘qtype’];
//some code
return $query;
But when I run the sites.php script it says it can’t find the file queries.php?qtype=show_sites.
So basically I want to use include so that it can return me a variable, but I also want that file to recieve a variable. How do I do this?