Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/06/2012, 09:14
gusanosxr
 
Fecha de Ingreso: junio-2012
Ubicación: Santiago de Chile
Mensajes: 164
Antigüedad: 11 años, 11 meses
Puntos: 1
Consulta fecha en PHP

<?
echo("<td><b>COTIZACION Nº ".$num_coti."</b></td>");

$dia=substr($fechacot,0,2); //no entiendo porque $fechacot,0,2
$mes=substr($fechacot,3,2); //no entiendo porque $fechacot,0,2

If ($mes == 1){$fecmes = "Enero";}
If ($mes == 2){$fecmes = "Febrero";}
If ($mes == 3){$fecmes = "Marzo";}
If ($mes == 4){$fecmes = "Abril";}
If ($mes == 5){$fecmes = "Mayo";}
If ($mes == 6){$fecmes = "Junio";}
If ($mes == 7){$fecmes = "Julio";}
If ($mes == 8){$fecmes = "Agosto";}
If ($mes == 9){$fecmes = "Septiembre";}
If ($mes == 10){$fecmes = "Octubre";}
If ($mes == 11){$fecmes = "Noviembre";}
If ($mes == 12){$fecmes = "Diciembre";}

$ano=substr($fechacot,6,4); //no entiendo porque $fechacot,6,4

echo("<td ALIGN=RIGHT>".$dia." de ".$fecmes." de ".$ano."</td>");
?>

$num_coti y $fechacot son rescatados de la tabla cotización...

COMENTÉ LOS TROZOS DE CÓDIGO QUE NO COMPRENDO BIEN, POR FAVOR

AYUDÉNME!
GRACIAS