
06/01/2009, 21:27
|
| | Fecha de Ingreso: octubre-2008 Ubicación: Hda. Ojo de agua - Edo. México
Mensajes: 20
Antigüedad: 16 años, 4 meses Puntos: 0 | |
Respuesta: Mi pagina aparece en blanco =( bueno, pues ya puse todo lo que me diste,
y me manda error,
Parse error: syntax error, unexpected ';' in C:\AppServ\www\SCI\cotizaciones\cotizaciones.php on line 69
Código:
function guardar(){
<?php
mysql_connect("server", "name", "pass") or die ("Error en conexion");
mysql_select_db("sci") or die ("BD erronea");
$fecha = $fechaD."/".$fechaM."/".$fechaA;
$insertSQL = "INSERT INTO cotizacion (noCotizacion,compania,atiende,conCopia,fecha,subtotal,total) VALUES ('$noCotizacion','$compania','$atiende','$conCopia','$fecha','$subTotal','$total');";
mysql_query($insertSQL) or die(mysql_error());
?>
for(i=0;i<indiceFilaFormulario;i++){
<? $noCotizacion = ?> document.cotiza.noCotizacion.value; <? ; ?>
<? $cantidad = ?> document.cotiza.cantidad["+indiceFilaFormulario+"].value; <? ; ?>
<? $descripcion = ?> document.cotiza.descripcion["+indiceFilaFormulario+"].value; <? ; ?>
<? $tiempoEntrega = ?> document.cotiza.tiempoEntrega["+indiceFilaFormulario+"].value; <? ; ?>
<? $precioUnitario = ?> document.cotiza.precioUnitario["+indiceFilaFormulario+"].value; <? ; ?>
<? $costoTotal = ?> document.cotiza.costoTotal["+indiceFilaFormulario+"].value; <? ; ?>
$insertSQL2 = "INSERT INTO datoscotizacion (noCotizacion,cantidad,descripcion,tiempoEntrega,precioUnitario,costoTotal,subTotal,total) VALUES ('$noCotizacion','$cantidad','$descripcion','$tiempoEntrega','$precioUnitario','$costoTotal')";
$Result2 = mysql_query($insertSQL2) or die(mysql_error());
?>
}
}
|