<?php
include('../../../php/sessionStart.php');
include('../../../php/db/dbExec.php');
include('../../../php/functions.php');

echo buscar();

function buscar() {
	$txtNom=utf8_decode(TRIM($_POST['txtNom']));
	
	# QUERYS
	$sTipoabo = "SELECT 
					TRIM(ta_cod) AS ta_cod,
					TRIM(ta_nom) AS ta_nom
				FROM tipoabo WHERE ta_nom LIKE '%$txtNom%'";

	# EJECUCION DE QUERYS
	$db = new dbExec();
	$resp["tipoabo"] = $db->sFetchAll($sTipoabo);
	$db->close();

	$func = new functions();
	return $func->jsonEncodeArray($resp, "tipoabo");
}
?>