This outline of php code I’m writing shows a combination of 3 tables, and table names. When shown one at a time the title is above the table, but when all three are shown, the text within the tags pile up above the tables. Any idea how to get around this??
<?php
if($_GET["pokemon"] == 'P')
{
#query to find pokemon cards in a deck
<h2>Pokemon</h2>
<table> #print a table based on query
}
if($_GET["trainer"] == 'T')
{
#query to find trainer cards in a deck
<h2>Trainers</h2>
<table> #print a table based on query
}
if($_GET["energies"] == 'E')
{
#query to find energy cards in a deck
<h2>Energies</h2>
<table> #print a table based on query
}
?>
Make sure you are closing your
<table></table>tagsthe same goes for your other tags: