thanks alot ...
but i have tried and wrote:
select name from table1 where name like '%$q%'
union all
select name from table2 where name like '%$q%'
but the problem, i got an SQL error says:
you have an error in your SQL syntax near 'union all select name fromm table2 where name like '%$q%' at line 2
so what was the matter .. ?
thanks alot in advance ...