$SQL = "select fecha, nombre,ivafactura from pedidos where fecha like '". $ano ."-". $mes ."-%'"; $RES = mysql_query($SQL,$conexion);