动态生成页面中的动态页面

So I already have a main page then dynamic pages. But I want to know how to generate a dynamic page within a the generated page. For example, www.whatever.com/something.php?q=something?p=something

I want to make the dynamic page contain other dynamic pages within so I can switch out content in that page.

Any ideas?

So this page is done by www.website.com/folder/main.php?c=page1, in this div I want to do other content

 <div class="col s9 grey right">
    <!-- Teal page content  -->
    <div class="card-panel z-depth-2">
     <div class="row center">
                <div class="col s12">
                    <?php  include 'content.php';?>

                </div><!---panel personal stats---->
            </div><!---profile container row--->
</div>
  </div>

Within that url I'm trying to get something like this www.website.com/folder/main.php?c=page1/content/content?q=othercontent

$_GET

Search in internet $_GET and Url parameters, i.e. GET URL parameter in PHP

<div class="col s9 grey right">
<!-- Teal page content  -->
<div class="card-panel z-depth-2">
 <div class="row center">
            <div class="col s12">
                <?php  include 'content.php';
                if ($_GET['c'] == 'page') {
                    echo 'Ala ma kotA';
                } else {
                    echo 'Ala nie ma kotA';
                }
                ?>

            </div><!---panel personal stats---->
        </div><!---profile container row--->