$clarrenumcgm = new cl_arrenumcgm(); $compradoresm = 0; $compradoresf = 0; $transmitentesm = 0; $transmitentesf = 0; $outroscompradores = ""; $outrostransmitentes = ""; $it14_valoravalterfinanc = 0; $it14_valoravalconstrfinanc = 0; $it14_valoravalfinanc = 0; $it04_aliquotafinanc = 0; $p = 0; $result = $clitbiavalia->sql_record($clitbiavalia->sql_query($itbi)); //db_criatabela($result);exit; db_fieldsmemory($result, 0); $result = $clitbi->sql_record($clitbi->sql_query($itbi)); db_fieldsmemory($result, 0); $areaterreno = $it01_areaterreno; $areatran = $it01_areatrans; $result = $clitburbano->sql_record($clitburbano->sql_query($itbi)); if ($clitburbano->numrows > 0) { db_fieldsmemory($result, 0); $tipo = "urbano"; } $result = $clitbirural->sql_record($clitbirural->sql_query($itbi)); if ($clitbirural->numrows > 0) { db_fieldsmemory($result, 0); $tipo = "rural"; } $result = $clitbimatric->sql_record($clitbimatric->sql_query($itbi)); if ($clitbimatric->numrows > 0) {