require_once '../config/config.php'; $obj_config = new ConfigVars(); // Archivo de mensajes require_once '.' . $obj_config->GetVar('ruta_config') . 'mensajes.php'; // Clase Generica require '.' . $obj_config->GetVar('ruta_libreria') . 'Generica.php'; $obj_generico = new Generica(); // Conexion a la bases de datos require '.' . $obj_config->GetVar('ruta_libreria') . 'Bd.php'; $obj_conexion = new Bd(); if (!$obj_conexion->ConnectDataBase($obj_config->GetVar('host'), $obj_config->GetVar('data_base'), $obj_config->GetVar('usuario_db'), $obj_config->GetVar('clave_db'))) { echo "sin_conexion_bd"; } // Modelo asignado require '.' . $obj_config->GetVar('ruta_modelo') . 'Ventas.php'; $obj_modelo = new Ventas($obj_conexion); session_start(); $result = $obj_modelo->EsZodiacal(); $retorno = ''; while ($row = $obj_conexion->GetArrayInfo($result)) { $retorno .= $row['id_sorteo'] . "-"; } echo $retorno; /* If ($obj_conexion->GetNumberRows($resultTT)>0){ //echo "Ok", $obj_conexion->GetNumberRows($resultTT); echo "Ok"; }else{ //echo "NotOk", $obj_conexion->GetNumberRows($resultTT); echo "NotOk"; }*/