-1
Good, I’m having difficulty showing the data of a database using 3 tables.
<?php
include("conectar.php");
$quantidade = 1;
$pagina = (isset($_GET['pagina'])) ? (int)$_GET['pagina'] : 1;
$inicio = ($quantidade * $pagina)-$quantidade;
$sql = "Select * From tb_trabalhador order by id asc LIMIT $inicio, $quantidade";
$qr = mysql_query($sql) or die (mysql_error());
while($exibe = mysql_fetch_array($qr)){
I have 2 more tables to display the data there. I did the test with only two tables and also does not show me the entered data
SELECT * FROM tb_trabalhador
INNER JOIN tb_detalhe_trabalhador ON Tb_trabalhador.id =tb_detalhe_trabalhador.tb_trabalhador_id;
I tried Left and Right and displays the data from the respective tables. I wonder if you can help me with this problem?
this page has some examples http://blog.thiagobelem.net/relations-tabelas-no-mysql/
– Silvio Andorinha
As much as some have understood your problem, it is unclear what you are asking. Leave on record what you are needing.
– ricidleiv
I’ve already made changes and I hope it’s clearer now my doubt
– ChrisAdler
@user3253195 As far as you can understand, you want to make a Join with the 3 tables. The problem would not be the PHP code. I believe that the question as a whole is not very clear from the words used, such as the term "call tables". Also, you say that the result of your attempt was 0 (zero), but what does that mean? Zero records? Sum equal to zero? Where’s your Join attempt? I think your question was closed because people couldn’t interpret what you said. If I understand correctly, I suggest editing again, including the title, for something related to SQL and Joins.
– utluiz