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