
27/08/2013, 19:05
|
| | Fecha de Ingreso: agosto-2003
Mensajes: 524
Antigüedad: 21 años, 8 meses Puntos: 5 | |
Respuesta: pasar variable con ajax y php Estructura de tabla para la tabla `alquiler`
--
CREATE TABLE IF NOT EXISTS `alquiler` (
`id_alquiler` int(5) unsigned NOT NULL AUTO_INCREMENT,
`id_cliente` int(5) NOT NULL,
`id_insumo` int(5) NOT NULL,
`fecha` date NOT NULL,
`entrega` float(4,2) NOT NULL,
PRIMARY KEY (`id_alquiler`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT
Estructura de tabla para la tabla `insumos`
--
CREATE TABLE IF NOT EXISTS `insumos` (
`id_insumo` int(5) NOT NULL AUTO_INCREMENT,
`insumo` varchar(41) NOT NULL,
`costo` float(4,2) NOT NULL,
PRIMARY KEY (`id_insumo`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT
--------------------------------------------------------
--
-- Estructura de tabla para la tabla `alquiler`
--
CREATE TABLE IF NOT EXISTS `alquiler` (
`id_alquiler` int(5) unsigned NOT NULL AUTO_INCREMENT,
`id_cliente` int(5) NOT NULL,
`id_insumo` int(5) NOT NULL,
`fecha` date NOT NULL,
`entrega` float(4,2) NOT NULL,
PRIMARY KEY (`id_alquiler`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT
los resultados que necesito que se muestren son igual cliente igual insumo, disculpas por mi insistencia pero no se que mas intentar.
__________________ Saludos!!! Maru.- |