si me refiero a los arrays asociativos
Código PHP:
<?php
$mensaje = $HTTP_POST_VARS['mensaje'];
$estacion = $HTTP_POST_VARS['estacion'];
$byr = $HTTP_POST_VARS['byr'];
$eyr = $HTTP_POST_VARS['eyr'];
$bmo = $HTTP_POST_VARS['bmo'];
$emo = $HTTP_POST_VARS['emo'];
$bdy = $HTTP_POST_VARS['bdy'];
$edy = $HTTP_POST_VARS['edy'];
$bhr = $HTTP_POST_VARS['bhr'];
$ehr = $HTTP_POST_VARS['ehr'];
$fechainicio = $byr."-".$bmo."-".$bdy;
$fechafin = $eyr."-".$emo."-".$edy;
$comando = "elimina_archivos.php";
include ($comando);
$nombre = date("YmdHis",time());
$x = "";
$NivOblig = array (1000,925,850,700,500,400,300,250,200,150,100); //Arreglo de Niveles obligatorios.
$link = mysql_connect("localhost","root","admin");
mysql_select_db("RADIOSONDEO",$link);
if ($mensaje == "TTBB"){
$tabla = "TTAA".$estacion;
$sql = "SELECT DISTINCT Fecha,Hora,Estacion,PP,HGT,TT,TD,DD,FF from $tabla where Fecha >= '$fechainicio' and Fecha <= '$fechafin' and Hora >= '$bhr' and Hora <= '$ehr'";
$result = mysql_query($sql,$link);
do{
//aqui haria el split para obtener los meses y los dias
}while($row = mysql_fetch_array($result));