Ver Mensaje Individual
  #14 (permalink)  
Antiguo 20/11/2008, 14:50
Avatar de jozzj
jozzj
 
Fecha de Ingreso: noviembre-2008
Mensajes: 33
Antigüedad: 15 años, 6 meses
Puntos: 0
Respuesta: Este codigo no imprime el valor..

Tanto el Detalle_producto y Producrop1 son varchar, con lo del dump te refieres a la estructura de las tablas ?

Código:
CREATE DATABASE `hotel2`
    CHARACTER SET 'utf8'
    COLLATE 'utf8_general_ci';

USE `hotel2`;

#
# Structure for the `detalle_factura` table : 
#

CREATE TABLE `detalle_factura` (
  `Cod_DFactura` int(11) unsigned zerofill NOT NULL auto_increment,
  `Fecha` date default NULL,
  `Hora_Entrada` time default NULL,
  `Hora_Salida` time default NULL,
  `Atendido` varchar(20) default NULL,
  `Detalle_p1` varchar(20) default NULL,
  `Detalle_p2` varchar(20) default NULL,
  `Detalle_p3` varchar(20) default NULL,
  `Cantidad_p1` int(11) default NULL,
  `Cantidad_p2` int(11) default NULL,
  `Cantidad_p3` int(11) default NULL,
  `IVA` int(11) NOT NULL,
  `Total` int(11) NOT NULL,
  `Sede` varchar(20) default NULL,
  PRIMARY KEY  (`Cod_DFactura`),
  UNIQUE KEY `Cod_DFactura` (`Cod_DFactura`)
) ENGINE=InnoDB AUTO_INCREMENT=124 DEFAULT CHARSET=utf8 PACK_KEYS=0 ROW_FORMAT=DYNAMIC COMMENT='InnoDB free: 3072 kB; (`Cod_Factura`) REFER `hotel2/factura`';

#
# Structure for the `producto` table : 
#

CREATE TABLE `producto` (
  `Cod_producto` int(11) NOT NULL auto_increment,
  `Detalle_Producto` varchar(20) default NULL,
  `Valor_Producto` int(11) NOT NULL,
  PRIMARY KEY  (`Cod_producto`),
  UNIQUE KEY `Id_producto` (`Cod_producto`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 PACK_KEYS=0 ROW_FORMAT=DYNAMIC COMMENT='InnoDB free: 3072 kB; InnoDB free: 11264 kB';