Tema: error
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/12/2010, 07:05
cargatrans
 
Fecha de Ingreso: diciembre-2010
Mensajes: 32
Antigüedad: 13 años, 4 meses
Puntos: 0
Respuesta: error

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

$fecha=$_POST[dispo_camion];
list ($dia,$mes,$ano)=split("/",$fecha);
$nueva=mktime(0,0,0,$mes,$dia,$ano)+($_POST[dia_camion]*24*60*60);
$nuevafecha=date("d/m/Y",$nueva);
$diamesano=explode("/",$nuevafecha);
$nuevafecha=$diamesano[0]."/".$diamesano[1]."/".$diamesano[2];
$nuevafecha2=$diamesano[2]."/".$diamesano[1]."/".$diamesano[0];

$origen1 = $_POST["origen"];
$destino1 = $_POST["destino"];

for($i=0 ; $i<4 ; $i++) {
$Origen[$i] = $origen1[$i];
}
for ($j=0 ; $j<4 ; $j++) {
$Destino[$j] = $destino1[$j];


este es el codigo y comienza en la linea 9 y termina en la 50
un saludo. y gracias