/** * @name f_DESCRIPCION * @uses Esta función nos permite saber los nombres de la columnas de la tabla */ function f_GETCOLUMNAS() { require_once '../core/c_CONEXION.php'; $o_cnx = new c_CONEXION($this->a_quebase); $o_cnx->f_PREPARAR('select * from ?'); $o_cnx->f_SETVARIABLES(1, $this->a_tabla); $o_cnx->f_EJECUTAR(); $t_data = $o_cnx->f_Columnas(); $this->t_columnas = (object) $t_data; return $t_data; }
<?php $t_nro = '' . @$_GET['nro']; require_once '../qrcode/qrcode.class.php'; /** * debemos consultar en tres tablas */ require_once '../../../core/c_CONEXION.php'; // parametros guardados por la solicitud $o_getSql = new c_CONEXION('forminnec'); $o_getSql->f_PREPARAR('select * from inen_solicitud where req_no= ?'); $o_getSql->f_SETVARIABLES(1, '' . $t_nro, 'texto'); $o_getSql->f_EJECUTAR(); $t_solicitud = $o_getSql->f_RECORDSET(); //parametros guardados en articulos $o_getSql->f_PREPARAR('select * from inen_producto where req_no=?'); $o_getSql->f_SETVARIABLES(1, '' . $t_nro, 'texto'); $o_getSql->f_EJECUTAR(); $t_psolicitud = $o_getSql->f_RECORDSET(); $html = ' <html> <head> <style> body {font-family: sans-serif; font-size: 10pt; } p { margin: 0pt; } table.items { border: 0.1mm solid #000000; } td { vertical-align: top; }