My bank looks like this:
cd_cliente | nr_ddd | nr_telefone
30 | 11 | 25622791
30 | 11 | 25622791
My select is like this:
"SELECT * FROM tb_telefones WHERE nr_ddd="+ddd+" AND nr_telefone="+telefone+"";
It returns from the database from the ddd and phone parameters, the numbers that are equal to them.
I want that from this parameters (nr_ddd and nr_telefone), it returns the value of cd_client, and make a new query, returned tos ddds and phones that have cd_client equal.