I'm trying to combine two queries.
$query_1 = mysql_query("SELECT * FROM `table1_results` WHERE id=".$_GET['id']);
while($table1_results = mysql_fetch_assoc($query_1)){
$total[] = $table1_results;
}
and
$query_1 = mysql_query("SELECT * FROM `table2_results` WHERE id=".$_GET['id']);
while($table2_results = mysql_fetch_assoc($query_1)){
$total[] = $table2_results;
}
everything remains the same, just I want to combine two different tables
table2_results
and
table2_results in one query
I consulted a lot of examples, but did not get the desired result, please give an example proper solution to the problem thank you