Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/06/2014, 17:34
Vicmon20
 
Fecha de Ingreso: junio-2014
Ubicación: Mexico
Mensajes: 14
Antigüedad: 9 años, 10 meses
Puntos: 0
Respuesta: PHP MySql Al Seleccionar 4 variables o mas...No me trae los datos

Código PHP:
$region=$_POST['Regiones'];
$servicio=$_POST['Servicios'];
$fecha=$_POST['Fecha'];
$fechafin=$_POST['Fechafin'];

$reporte=mysql_query("SELECT region,servicio,id_cuenta,
(CONCAT('$ ',FORMAT((Monto),2))) as monto,fecha    
FROM dinero WHERE Region='$region' 
and servicio='$servicio'
and fecha BETWEEN '$fecha' and '$fechafin'
order by fecha,id_cuenta"
);
        echo 
"<center><table border='5'>";    
        echo 
"<th>Region</th><th>Servicio</th><th>Id_cuenta</th><th>Monto</th><th>Fecha</th>";    
    while(
$reglon=mysql_fetch_array($reporte))
    {
      echo 
"<tr>";
      echo 
"<td><center>" $reglon ['region']. "</center></td>";
      echo 
"<td>" $reglon ['servicio']. "</td>";
      echo 
"<td>" $reglon ['id_cuenta']. "</td>";
      echo 
"<td><center>" $reglon ['monto']. "</center></td>";
      echo 
"<td><center>" $reglon ['fecha']. "</center></td>";
      echo 
"</tr>";
    }
    echo 
"</table></center>"
    
mysql_free_result($reporte);
?>
</body>
</html> 

Última edición por Vicmon20; 25/06/2014 a las 17:37 Razón: Este es el codigo de la pagina que Recibe el valor de las "Variables", pero la consulta no me arroja resultados...