I am working with php and I need to point to the id of a detail table, the problem is that I show information from the main table but my button must point to the table information here my problem:
The id of the main table is 168
but in my detail button it must point to my id 85 that contains the detail of that table.
my detail table:
How would the query be to bring that id
of my detail table to the main table?
Tables:
Entrada:
id (relacion)
proveedor
cajas
peso
hora
Detalle:
id
fecha
hora
identrada (relacion)
...
The information in table Entrada
is displayed but the link points to the id of the detail. Eye! It does not always have detail so if you are going to bring the id of the detail, show it in 0, can you?