Why if I try to generate a table in a custom html it doesn't show a table?, it appears everything in the same line and I don't know why. This is the code:
{source}
<?php
$db =& JFactory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.Nombre','a.Email','a.Pais','a.Google','a.Skype','a.Password')))
->from($db->quoteName('#__chronoengine_chronoforms_datatable_Intercambios','a'));
$db->setQuery($query);
$options = $db->loadAssocList();~
?>
<p>
<?php foreach( $options as $option ) {
$this_user_email = $option['Email'];
$this_user_skype = $option['Skype'];
this_user_name = $option['Nombre'];
$this_user_pais = $option['Pais'];
$this_user_google = $option['Google'];
?>
</p>
<table border="1">
<thead>
<tr>
<th>Nombre</th>
<th>Nivel</th>
<th>Pais</th>
<th>Votos</th>
<th>Skype</th>
<th>Hangout</th>
<th>FaceTime</th>
<th>Correo</th>
</tr>
</thead>
<tbody>
<tr>
<td> <?php print_r($this_user_name);?></td>
<td> </td>
<td><?php print_r($this_user_pais);?> </td>
<td> </td>
<td> <?php print_r($this_user_skype);?></td>
<td> <?php print_r($this_user_skype);?></td>
<td> </td>
<td> <?php print_r($this_user_email);?></td>
</tr>
</tbody>
</table>
<?php } ?>
{/source}