It is necessary to print lines from one table, provided that the field of these lines is equal to the field from another table, let's say id ?

How to make a request using php pdo ?

  • you need to take into account that in the first table the identifier may not be present, and the query will return false.

At the end you need to get an array of the following form:

 0 pole1 = 123 pole2 = 123 1 pole1 = 123 pole2 = 123 2 pole1 = 123 pole2 = 123 3 pole1 = 123 pole2 = 123 
  • the structure of the tables would not hurt even the approximate data - Jean-Claude
  • Something like this: SELECT table1. *, Table2. * FROM table1 LEFT JOIN table2 ON table2.id = table1.field_id - fens
  • And the structure of the tables is a state secret? - fens

0