Hello. The question is stupid, but still can not figure it out ...
There are 2 queries from the database:
$result = mysql_query("SELECT * FROM `table1` WHERE id = '$_GET[id]'"); $result2 = mysql_query("SELECT * FROM `table2` WHERE user_id = '$_GET[id]'");
How to combine them into one request?
As I understand it, there must be intersecting fields, for example, id in one database should be equal to id in another?
I want to understand how to select data from 2 tables in order not to store all the data needed in one table.