15/03/2011, 10:47
|
| | Fecha de Ingreso: julio-2010
Mensajes: 64
Antigüedad: 14 años, 4 meses Puntos: 1 | |
Respuesta: fechas con oracle y php sigo sin resolver. Este es parte de mi codigo:
$stmt2 = oci_parse($odbc, "SELECT trunc(DATETIME) as datetime, Max(OSS_SMSJINNY.PERFORMANCE) as Performance, Max(OSS_SMSJINNY.AVGFDA) as AVGFDA,
(Round((100*Sum(FDA)/(Sum(MTTOTAL-MTESME))),2)) as porciento
FROM STATDBA.OSS_SMSJINNY OSS_SMSJINNY
WHERE (OSS_SMSJINNY.DATETIME>=trunc(SYSDATE-31) And OSS_SMSJINNY.DATETIME<trunc(SYSDATE))
GROUP BY trunc(DATETIME)
ORDER BY trunc(DATETIME)");
oci_execute($stmt2);
$incd=0;
global $arreglo_performance_2;
$arreglo_performance_2= array();
$arreglo_AVGFDA_2 = array();
$arreglo_porciento_2= array();
$arreglo_dias= array();
$arreglo_dias_nuevo=array();
while (($row2 = oci_fetch_array($stmt2, OCI_BOTH))) {
//$arreglo_dias[$incd]= DateTime::createFromFormat('d-M-Y', $row2[0]);
//to_date('04/05/2010', 'dd/mm/yyyy');
//To_Date(
$arreglo_dias[$incd]= date('dd/mm/yyyy',$row2[0]);
$arreglo_performance_2[$incd]= (int)$row2[1];
$arreglo_AVGFDA_2[$incd]= (int)$row2[2];
$arreglo_porciento_2[$incd]= (int)$row2[3];
$incd++;
}
y con esto me da el siguiente error:
Notice: A non well formed numeric value encountered in E:\pagina\sitioHeidy\SMS_Center.php on line 62
array(31) { [0]=> string(18) "3131/1212/69696969" [1]=> string(18) "3131/1212/69696969" [2]=> string(18) "3131/1212/69696969" [3]=> string(18) "3131/1212/69696969" [4]=> string(18) "3131/1212/69696969" [5]=> string(18) "3131/1212/69696969" [6]=> string(18) "3131/1212/69696969" [7]=> string(18) "3131/1212/69696969" [8]=> string(18) "3131/1212/69696969" [9]=> string(18) "3131/1212/69696969" [10]=> string(18) "3131/1212/69696969" [11]=> string(18) "3131/1212/69696969" [12]=> string(18) "3131/1212/69696969" [13]=> string(18) "3131/1212/69696969" [14]=> string(18) "3131/1212/69696969" [15]=> string(18) "3131/1212/69696969" [16]=> string(18) "3131/1212/69696969" [17]=> string(18) "3131/1212/69696969" [18]=> string(18) "3131/1212/69696969" [19]=> string(18) "3131/1212/69696969" [20]=> string(18) "3131/1212/69696969" [21]=> string(18) "3131/1212/69696969" [22]=> string(18) "3131/1212/69696969" [23]=> string(18) "3131/1212/69696969" [24]=> string(18) "3131/1212/69696969" [25]=> string(18) "3131/1212/69696969" [26]=> string(18) "3131/1212/69696969" [27]=> string(18) "3131/1212/69696969" [28]=> string(18) "3131/1212/69696969" [29]=> string(18) "3131/1212/69696969" [30]=> string(18) "3131/1212/69696969" } |