There is a DB, it has 3 tables (table1, table2, table3).

Table1 and table2 are glued with join.

Table1 have columns (id, name),

Table2 (id, name),

Table3 (id, url).

Table1 has a one-to-many relation to table2.

Table2 has a one-to-one relationship with table3.

In html there are checkboxes, when selected, the name is taken from table1.

So, how to make a request to the database on the PDO, so that when selecting one or several checkboxes (name from table1), the corresponding pictures are output from table3?

  • but .... you .... already know about join .... - Alexey Shimansky
  • No, I was given a table as an assignment! Help who understands this. - Konstantin Isaev

0