-1
I have a question about tabs. Previously had the data to be shown all within a table with pagination .
Now my doubt is. with tabs divisions I have to open and close php every time I change tab? How I can make tabs?
It used to be like this:
include("conectar.php");
$quantidade = 1;
$pagina = (isset($_GET ['pagina'])) ? (int)$_GET['pagina'] : 1;
$inicio = ($quantidade * $pagina) - $quantidade;
$sql = "select * from Tables order by tb_trabalhador.id asc LIMIT $inicio, $quantidade" ;
$qr = mysql_query($sql) or die(mysql_error());
while($exibe = mysql_fetch_array($qr)){
echo "<table>";
echo "<tr><td>Nome:</td>";
echo "<td>".$exibe["Nome"]."</td></tr>";
echo "<tr><td>Morada:</td>"; echo "<td>";
if ($exibe['Morada']){ echo $exibe['Morada'];}else{echo 'N/D';} echo "</td></tr>";
echo "<tr><td>Distrito:</td>"; echo "<td>";
if ($exibe['Distrito']){ echo $exibe['Distrito'];}else{echo 'N/D';} echo "</td></tr>";
echo "<tr><td>Concelho:</td>"; echo "<td>";
if ($exibe['Concelho']){ echo $exibe['Concelho'];}else{echo 'N/D';} echo "</td></tr>";
Now I’ve got it so it’s not filled:
<div id="tabs-1">
<p>Content for Tab 1</p>
</div>
<div id="tabs-2">
<p>Content for Tab 2</p>
</div>
<div id="tabs-3">
<p>Content for Tab 3</p>
</div>
Como consigo fazer a paginação com as tabs
didn’t I understand? could explain better?– Hy-brazil
In the first example it was as had to show the Mysql data in table form and before the table had the pagination. But I decided to improve this way and I want the mysql data to appear in different places in an organized way. By changing this I didn’t know where to put the paging to work
– ChrisAdler