$fetch = mysql_query("select * from table1,table2"); while ($row = mysql_fetch_array($fetch)) { echo $row['name'].table1; echo $row['name'].table2; }
$fetch = mysql_query("select name from table1 union all select name from table2");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)