How do i compare 2 fields in 2 tables, find a match and use it ? example:
table1: data1(id_data1,name,address,phone,account) table2: data2(id_data2,name2)
now in php: if (name2.table2 has a matching name in name.table1) { give me the address,phone,account }