How to 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 the same name in name.table1) {give me the address, phone, account}
source
share