Catálogo de Comunidades

uf_conectar(); $io_data = new class_datastore(); $io_sql = new class_sql($conn); if (array_key_exists("operacion",$_POST)) { $ls_operacion = $_POST["operacion"]; $ls_codpais = $_POST["hidpais"]; $ls_codest = $_POST["hidestado"]; $ls_codmun = $_POST["hidmunicipio"]; $ls_codpar = $_POST["hidparroquia"]; } else { $ls_operacion = ""; $ls_codpais = $_GET["hidpais"]; $ls_codest = $_GET["hidestado"]; $ls_codmun = $_GET["hidmunicipio"]; $ls_codpar = $_GET["hidparroquia"]; } $ls_sql=" SELECT codcom,nomcom FROM sigesp_comunidad ". " WHERE codpai= '".$ls_codpais."' AND codest= '".$ls_codest."' AND codmun= '".$ls_codmun."' AND codpar= '".$ls_codpar."'". " ORDER BY codcom ASC "; $rs_data = $io_sql->select($ls_sql); $data = $rs_data; if ($row=$io_sql->fetch_row($rs_data)) { $data = $io_sql->obtener_datos($rs_data); $arrcols = array_keys($data); $totcol = count($arrcols); $io_data->data = $data; $totrow = $io_data->getRowCount("codcom"); print ""; print ""; print ""; print ""; print ""; for ($z=1;$z<=$totrow;$z++) { print ""; $ls_codcom = $data["codcom"][$z]; $ls_nomcom = $data["nomcom"][$z]; print ""; print ""; print ""; } print "
CódigoDenominación
".$ls_codcom."".$ls_nomcom."
"; $io_sql->free_result($rs_data); } else { ?>