Menu icon Foundation
Include php page inside accordion

I am looking for advice and guidance on using php ' include' inside of accordion content panel. When I put it in, the page shows, but outside of the closed panel. any directions is appreciated

      <?php do { ?>
           <?php     //certdetails ($row_cert_listing['cert_num'])?>
          <ul class="accordion" data-accordion>
            <li class="accordion-navigation">
              <a href="#panel1a<?php echo $row_cert_listing['cert_num']; ?>"><?php echo $row_cert_listing['cert_name']; ?></a>
              <div id="panel1a<?php echo $row_cert_listing['cert_num']; ?>" class="content ">
                <p><?php echo $row_cert_listing['cert_desc']; ?>
                <h5> <?php echo $row_cert_listing['cert_fee']; ?></h5>
                <?php  $_session["cert_num"]=$row_cert_listing['cert_num'];
				include("certificate_details_found.php"); ?>
                </p>
              </div>
            </li>
        </ul>
        <li class="no-bullet">&nbsp;</li>
        <?php } while ($row_cert_listing = mysql_fetch_assoc($cert_listing)); ?>      

         

accordionphp include

I am looking for advice and guidance on using php ' include' inside of accordion content panel. When I put it in, the page shows, but outside of the closed panel. any directions is appreciated

      <?php do { ?>
           <?php     //certdetails ($row_cert_listing['cert_num'])?>
          <ul class="accordion" data-accordion>
            <li class="accordion-navigation">
              <a href="#panel1a<?php echo $row_cert_listing['cert_num']; ?>"><?php echo $row_cert_listing['cert_name']; ?></a>
              <div id="panel1a<?php echo $row_cert_listing['cert_num']; ?>" class="content ">
                <p><?php echo $row_cert_listing['cert_desc']; ?>
                <h5> <?php echo $row_cert_listing['cert_fee']; ?></h5>
                <?php  $_session["cert_num"]=$row_cert_listing['cert_num'];
				include("certificate_details_found.php"); ?>
                </p>
              </div>
            </li>
        </ul>
        <li class="no-bullet">&nbsp;</li>
        <?php } while ($row_cert_listing = mysql_fetch_assoc($cert_listing)); ?>      

         
Esa Rantanen over 4 years ago

Timothy, there's a h5 inside a p.