title: Add space between two tables in php
body: <p>I have this php script:</p>
  
  <pre><code>&lt;?php
  $gene = $_POST["gene"];
  
  $enlace = mysqli_connect("localhost","root","emi22mar6","refGene");
  if (mysqli_connect_errno())
    {
    echo "Failed to connect to MySQL: " . mysqli_connect_error();
    }
  
  mysqli_select_db($enlace,"refGene_human");
  $result = mysqli_query($enlace,"select * from refGene_human where name2 like '%$gene%'");
  
  echo "&lt;h1&gt;RefGene Results&lt;/h1&gt;";
  
  echo "&lt;table align='left' cellspacing=3 cellpadding=4 border=1 bgcolor=dddddd&gt;";
  echo "&lt;tr align='center'&gt;&lt;th&gt;Transcript&lt;/th&gt;&lt;th&gt;Gene&lt;/th&gt;&lt;th&gt;Chromosome&lt;/th&gt;&lt;th&gt;Strand&lt;/th&gt;&lt;th&gt;Gene_Start&lt;/th&gt;&lt;th&gt;Gene_End&lt;/th&gt;&lt;th&gt;CDS_Start&lt;/th&gt;&lt;th&gt;CDS_End&lt;/th&gt;&lt;th&gt;ExonCount&lt;/th&gt;";
  while ($extraido = mysqli_fetch_array($result)){
  echo "&lt;tr&gt;";
  echo "&lt;td&gt;".$extraido['name']."&lt;br/&gt;";
  echo "&lt;td&gt;".$extraido['name2']."&lt;br/&gt;";
  echo "&lt;td align='center'&gt;".$extraido['chrom']."&lt;br/&gt;";
  echo "&lt;td align='center'&gt;".$extraido['strand']."&lt;br/&gt;";
  echo "&lt;td align='right'&gt;".$extraido['txStart']."&lt;br/&gt;";
  echo "&lt;td align='right'&gt;".$extraido['txEnd']."&lt;br/&gt;";
  echo "&lt;td align='right'&gt;".$extraido['cdsStart']."&lt;br/&gt;";
  echo "&lt;td align='right'&gt;".$extraido['cdsEnd']."&lt;br/&gt;";
  echo "&lt;td align='right'&gt;".$extraido['exonCount']."&lt;br/&gt;";
  }
  echo "&lt;/table&gt;";
  
  mysqli_free_result($result);
  mysqli_close($enlace);
  
  
  $enlace2 = mysqli_connect("localhost","root","emi22mar6","refGene");
  if (mysqli_connect_errno())
    {
    echo "Failed to connect to MySQL: " . mysqli_connect_error();
    }
  
  
  mysqli_select_db($enlace2,"go_association_human");
  $result2 = mysqli_query($enlace2,"select * from go_association_human where db_object_symbol like '%$gene%'");
  
  echo "&lt;h1&gt;GO_Association Results&lt;/h1&gt;";
  
  echo "&lt;table align='left' cellspacing=3 cellpadding=4 border=1 bgcolor=dddddd&gt;";
  echo "&lt;tr align='center'&gt;&lt;th&gt;DB&lt;/th&gt;&lt;th&gt;Gene_ID&lt;/th&gt;&lt;th&gt;Gene_Symbol&lt;/th&gt;&lt;th&gt;GO_id&lt;/th&gt;&lt;th&gt;GO_reference&lt;/th&gt;&lt;th&gt;Association&lt;/th&gt;&lt;th&gt;Type&lt;/th&gt;&lt;th&gt;Date&lt;/th&gt;&lt;th&gt;Assigned_by&lt;/th&gt;";
  
  while ($extraido2 = mysqli_fetch_array($result2)){
  echo "&lt;tr&gt;";
  echo "&lt;td&gt;".$extraido2['db']."&lt;br/&gt;";
  echo "&lt;td&gt;".$extraido2['db_object_id']."&lt;br/&gt;";
  echo "&lt;td&gt;".$extraido2['db_object_symbol']."&lt;br/&gt;";
  echo "&lt;td&gt;".$extraido2['go_id']."&lt;br/&gt;";
  echo "&lt;td&gt;".$extraido2['db_reference']."&lt;br/&gt;";
  echo "&lt;td&gt;".$extraido2['db_object_name']."&lt;br/&gt;";
  echo "&lt;td&gt;".$extraido2['db_object_type']."&lt;br/&gt;";
  echo "&lt;td&gt;".$extraido2['date']."&lt;br/&gt;";
  echo "&lt;td&gt;".$extraido2['assigned_by']."&lt;br/&gt;";
  }
  
  echo "&lt;/table&gt;";
  
  mysqli_free_result($result2);
  
  mysqli_close($enlace);
  ?&gt;
  </code></pre>
  
  <p>Which generates two tables, but I would like to add space between them, so that the second title "Association Results", gets between both tables and separating them, as if this title was above the second table. The code, as it is now, generates two consecutive tables with no spacing between them and putting the second title next to the first table...</p>
  
  <p>I know the solution involves adding some margin to the tables via css or something similar, like adding this kind of code:</p>
  
  <pre><code>&lt;style type="text/css"&gt;
  table{
    margin: 10px 0;
  }
  &lt;/style&gt;
  </code></pre>
  
  <p>But I do not know how to integrate that css code into the php script so that it affects both tables.</p>
  
  <p>Any help?</p>
  
  <p>Thanks</p>