session_start(); setlocale(LC_TIME, 'es_MX'); $fecha=strftime("%A %e / %B / %Y"); $hora=strftime("%H:%M "); include ("../include/db.php"); $msql="Select * from BURSATIL"; $resultado = mysql_query($msql); while ($fila = mysql_fetch_array($resultado)) { //echo $cero = $fila[0]; $uno = $fila[1]; $dos = $fila[2]; $valor1 = $fila[3]; $valor2 = $fila[4]; $fecha = $fila[5]; //echo $seis = $fila[6]; if ($uno == "BMV") { $bmv1 = $valor1; $bmv2 = $valor2; $bmv3 = $fecha; $bmv4 = $dos; } if ($uno == "DOWNJ") { $jones1 = $valor1; $jones2 = $valor2; $jones3 = $fecha; $jones4 = $dos; } if ($uno == "NIKKEI") { $tres3 = $tres; $cuatro3 = $cuatro; //echo $tres3; } if ($uno == "NASDAQ") { $tres4 = $tres; $cuatro4 = $cuatro; //echo $tres4; } if ($uno == "DOLAR") { $dolar1 = $valor1; $dolar2 = $valor2; $dolar3 = $fecha; $dolar4 = $dos; } if ($uno == "EURO") { $tres6 = $tres; $cuatro6 = $cuatro; //echo $tres6; } if ($uno == "BRENT") { $tres7 = $tres; $west2 = $valor1; //echo $tres6; } if ($uno == "WEST") { $west1 = $valor1; //$west2 = $valor2; $west3 = $fecha; $west4 = $dos; } if ($uno == "MEZCLA") { $mezcla1 = $valor1; $mezcla2 = $valor2; $mezcla3 = $fecha; $mezcla4 = $dos; } } ?>
![]() |
|||||
|
|
|||||
|
|
México
D.F. echo $fecha." ".$hora;?> hrs. |
$sql="SELECT titulo, substr(datetime,12,5) as hora FROM cronometro order by datetime desc"; $result=mysql_query($sql); $cont = mysql_num_rows($result); $notas = array(); while($this = mysql_fetch_array($result)) { array_push($notas, $this); } echo ""; ?> | |||