1
I need to display different pages according to a value that comes through the URI, I did this code, is not pointing errors, but also does not display the contents of H1.
<?php
require_once"cabecalho.php";
$plano = $_GET['plano'];
if($plano == 'parcial'){ ?>
<section class="plano-parcial">
<h1>Plano parcial detalhes</h1>
</section>
<?php } ?>
Put these commands before the
require_once
and see if any errors will appear.error_reporting(E_ALL);
ini_set('display_errors', 1);
– David Alves
Of the one
var_dump()
in$plano
before theif()
to see what the value of this variable may be a comparison error– Erlon Charles