I have a big problem. It is the following I have the Script below:
<?php
$contarperfilclientecontar = "0";
$sqlxml = "SELECT id
,vvenda
FROM imoveis
WHERE cod = '1042'
AND status = '2'
";
$rsqlxml = mysql_query($sqlxml) or die("Banco XML não abre!");
while ($rowxml = mysql_fetch_array($rsqlxml))
{
$vartestevalor = $rowxml['vvenda'];
$sqlxmlcliente = "SELECT id
FROM clientes
WHERE cliente = '1042'
AND disponibilidade < '$vartestevalor'
";
$rsqlxmlcliente = mysql_query($sqlxmlcliente) or die("Banco XML não abre!");
while ($rowxmlcliente = mysql_fetch_array($rsqlxmlcliente))
{
$contarperfilclientecontar = $contarperfilclientecontar + 1;
}
}
I want the IMOVEIS
table to check all properties with the VVENDA
field that have MENORES
values as the DISPONIBILIDADE
field of the client table and list the number of records found.
Only the numbers do not beat!
Can anyone help me in this mystery?