$result = mysql_query( "SELECT id FROM table1 UNION ALL SELECT id FROM table2;" , $link);
while($end = mysql_fetch_assoc($result))
{
echo $end['id']; // how separate and specify output is frow which table ?
}
i have two table (phpmyadmin), and i want to search in both of them with 1qeury, then i'm use UNION to combine, now i want to seprating output and specify from what table is evry result (row)? tnx