0
I have a big problem. This 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;
}
}
My intention is that the table IMOVEIS
check all the properties with the field VVENDA
who have values MENORES
that the countryside DISPONIBILIDADE
of the client table and list the number of records found.
Only the numbers don’t match!
Can someone help me in this mystery?