Fix Functionnal Tables for Sun & MOON
fix the php & sql link
This commit is contained in:
+18
-2
@@ -3329,7 +3329,7 @@ INSERT INTO `EARTH` (`id`, `date`, `explanation`, `hdurl`, `media_type`, `servic
|
|||||||
(3227, '2003-10-30', 'Vivid auroral displays were triggered by a cloud of high energy particles and magnetic fields from the Sun that collided with planet Earth\'s magnetosphere yesterday, October 29, at about 06:30 Universal Time. The collision was anticipated, following an intense solar flare and coronal mass ejection detected on October 28, and many anxious skywatchers were rewarded with an enjoyable light show. While aurorae don\'t normally haunt skies in the southern United States, they were reported from locations in Missouri, Texas, New Mexico, and California in the early morning hours. Near Yampa, Colorado astronomer Jimmy Westlake also spent early yesterday morning enjoying the stormy space weather. He was impressed by this colorful apparition of the northern lights -- produced by oxygen and nitrogen atoms excited by collisions with energetic particles from the magnetosphere and returning to lower energy states, at altitudes of 100 kilometers or more. Brighter stars shine through the extreme high-altitude glow which shows much lower clouds and the distant horizon in silhouette.', 'https://apod.nasa.gov/apod/image/0310/aurora031029b_westlake_full.jpg', 'image', 'v1', 'Aurora in Colorado Skies (Ref 3226)', 'https://apod.nasa.gov/apod/image/0310/aurora031029b_westlake_c1.jpg', 'Jimmy Westlake\n(Colorado\nMountain College)', 'Earth'),
|
(3227, '2003-10-30', 'Vivid auroral displays were triggered by a cloud of high energy particles and magnetic fields from the Sun that collided with planet Earth\'s magnetosphere yesterday, October 29, at about 06:30 Universal Time. The collision was anticipated, following an intense solar flare and coronal mass ejection detected on October 28, and many anxious skywatchers were rewarded with an enjoyable light show. While aurorae don\'t normally haunt skies in the southern United States, they were reported from locations in Missouri, Texas, New Mexico, and California in the early morning hours. Near Yampa, Colorado astronomer Jimmy Westlake also spent early yesterday morning enjoying the stormy space weather. He was impressed by this colorful apparition of the northern lights -- produced by oxygen and nitrogen atoms excited by collisions with energetic particles from the magnetosphere and returning to lower energy states, at altitudes of 100 kilometers or more. Brighter stars shine through the extreme high-altitude glow which shows much lower clouds and the distant horizon in silhouette.', 'https://apod.nasa.gov/apod/image/0310/aurora031029b_westlake_full.jpg', 'image', 'v1', 'Aurora in Colorado Skies (Ref 3226)', 'https://apod.nasa.gov/apod/image/0310/aurora031029b_westlake_c1.jpg', 'Jimmy Westlake\n(Colorado\nMountain College)', 'Earth'),
|
||||||
(3228, '2024-01-13', 'rth\'s orbit around the Sun is not a circle, it\'s an ellipse. The point along its elliptical orbit where our fair planet is closest to the Sun is called perihelion. This year, perihelion was on January 2 at 01:00 UTC, with the Earth about 3 million miles closer to the Sun than it was at aphelion (last July 6), the farthest point in its elliptical orbit. Of course, distance from the Sun doesn\'t determine the seasons, and it doesn\'t the determine size of Sun halos. Easier to see with the Sun hidden behind a tall tree trunk, this beautiful ice halo forms a 22 degree-wide circle around the Sun, recorded while strolling through the countryside near Heroldstatt, Germany. The Sun halo\'s 22 degree angular diameter is determined by the six-sided geometry of water ice crystals drifting high in planet Earth\'s atmosphere.', 'https://apod.nasa.gov/apod/image/2401/22halo_Zboran.jpg', 'image', 'v1', 'Circling the Sun (Ref 3227)', 'https://apod.nasa.gov/apod/image/2401/22halo_Zboran1115.jpg', 'Radoslav Zboran', 'Earth'),
|
(3228, '2024-01-13', 'rth\'s orbit around the Sun is not a circle, it\'s an ellipse. The point along its elliptical orbit where our fair planet is closest to the Sun is called perihelion. This year, perihelion was on January 2 at 01:00 UTC, with the Earth about 3 million miles closer to the Sun than it was at aphelion (last July 6), the farthest point in its elliptical orbit. Of course, distance from the Sun doesn\'t determine the seasons, and it doesn\'t the determine size of Sun halos. Easier to see with the Sun hidden behind a tall tree trunk, this beautiful ice halo forms a 22 degree-wide circle around the Sun, recorded while strolling through the countryside near Heroldstatt, Germany. The Sun halo\'s 22 degree angular diameter is determined by the six-sided geometry of water ice crystals drifting high in planet Earth\'s atmosphere.', 'https://apod.nasa.gov/apod/image/2401/22halo_Zboran.jpg', 'image', 'v1', 'Circling the Sun (Ref 3227)', 'https://apod.nasa.gov/apod/image/2401/22halo_Zboran1115.jpg', 'Radoslav Zboran', 'Earth'),
|
||||||
(3229, '2025-01-17', 'Massive stars in our Milky Way Galaxy live spectacular lives. Collapsing from vast cosmic clouds, their nuclear furnaces ignite and create heavy elements in their cores. After only a few million years for the most massive stars, the enriched material is blasted back into interstellar space where star formation can begin anew. The expanding debris cloud known as Cassiopeia A is an example of this final phase of the stellar life cycle. Light from the supernova explosion that created this remnant would have been first seen in planet Earth\'s sky about 350 years ago, although it took that light 11,000 years to reach us. This sharp NIRCam image from the James Webb Space Telescope shows the still hot filaments and knots in the supernova remnant. The whitish, smoke-like outer shell of the expanding blast wave is about 20 light-years across. A series of light echoes from the massive star\'s cataclysmic explosion are also identified in Webb\'s detailed images of the surrounding interstellar medium.', 'https://apod.nasa.gov/apod/image/2501/CasA_nircam_4096.jpg', 'image', 'v1', 'Supernova Remnant Cassiopeia A (Ref 3228)', 'https://apod.nasa.gov/apod/image/2501/CasA_nircam_1024.jpg', '', 'Earth'),
|
(3229, '2025-01-17', 'Massive stars in our Milky Way Galaxy live spectacular lives. Collapsing from vast cosmic clouds, their nuclear furnaces ignite and create heavy elements in their cores. After only a few million years for the most massive stars, the enriched material is blasted back into interstellar space where star formation can begin anew. The expanding debris cloud known as Cassiopeia A is an example of this final phase of the stellar life cycle. Light from the supernova explosion that created this remnant would have been first seen in planet Earth\'s sky about 350 years ago, although it took that light 11,000 years to reach us. This sharp NIRCam image from the James Webb Space Telescope shows the still hot filaments and knots in the supernova remnant. The whitish, smoke-like outer shell of the expanding blast wave is about 20 light-years across. A series of light echoes from the massive star\'s cataclysmic explosion are also identified in Webb\'s detailed images of the surrounding interstellar medium.', 'https://apod.nasa.gov/apod/image/2501/CasA_nircam_4096.jpg', 'image', 'v1', 'Supernova Remnant Cassiopeia A (Ref 3228)', 'https://apod.nasa.gov/apod/image/2501/CasA_nircam_1024.jpg', '', 'Earth'),
|
||||||
(3230, '2011-03-03', 'About 1,300 images from the Lunar Reconnaissance Orbiter spacecraft\'s wide angle camera were used to compose this spectacular view of a familiar face - the lunar nearside. But why is there a lunar nearside? The Moon rotates on its axis and orbits the Earth at the same rate, about once every 28 days. Tidally locked in this configuration, the synchronous rotation always keeps one side, the nearside, facing Earth. As a result, featured in remarkable detail in the full resolution mosaic, the smooth, dark, lunar maria (actually lava-flooded impact basins), and rugged highlands, are well-known to earthbound skygazers. To find your favorite mare or large crater, just slide your cursor over the picture. The LRO images used to construct the mosaic were recorded over a two week period last December.', 'https://apod.nasa.gov/apod/image/1103/lroc_wac_nearside.jpg', 'image', 'v1', 'Lunar Nearside (Ref 3229)', 'https://apod.nasa.gov/apod/image/1103/lroc_wac_nearside800.jpg', '', 'Earth'),
|
(jveu3230, '2011-03-03', 'About 1,300 images from the Lunar Reconnaissance Orbiter spacecraft\'s wide angle camera were used to compose this spectacular view of a familiar face - the lunar nearside. But why is there a lunar nearside? The Moon rotates on its axis and orbits the Earth at the same rate, about once every 28 days. Tidally locked in this configuration, the synchronous rotation always keeps one side, the nearside, facing Earth. As a result, featured in remarkable detail in the full resolution mosaic, the smooth, dark, lunar maria (actually lava-flooded impact basins), and rugged highlands, are well-known to earthbound skygazers. To find your favorite mare or large crater, just slide your cursor over the picture. The LRO images used to construct the mosaic were recorded over a two week period last December.', 'https://apod.nasa.gov/apod/image/1103/lroc_wac_nearside.jpg', 'image', 'v1', 'Lunar Nearside (Ref 3229)', 'https://apod.nasa.gov/apod/image/1103/lroc_wac_nearside800.jpg', '', 'Earth'),
|
||||||
(3231, '2003-06-26', 'On planet Earth, an analemma is the figure-8 loop you get when you mark the position of the Sun at the same time each day throughout the year. But similarly marking the position of the Sun in the Martian sky would produce the simpler, stretched pear shape in this digital illustration, based on the Mars Pathfinder project\'s famous Presidential Panorama view from the surface. The simulation shows the late afternoon Sun that would have been seen from the Sagan Memorial Station once every 30 Martian days (sols) beginning on Sol 24 (July 29, 1997). Slightly less bright, the simulated Sun is only about two thirds the size as seen from Earth, while the Martian dust, responsible for the reddish sky of Mars, also scatters some blue light around the solar disk. Astronomer Dennis Mammana offers the illustration to mark the hopeful beginning of an exciting new era of robotic exploration of the Red Planet, with two new Mars missions now enroute and one preparing to launch.', 'https://apod.nasa.gov/apod/image/0306/marsalemma_mammana_full.jpg', 'image', 'v1', 'Martian Analemma (Ref 3230)', 'https://apod.nasa.gov/apod/image/0306/marsalemma_mammana_c1.jpg', 'Dennis Mammana\n(Skyscapes)', 'Earth'),
|
(3231, '2003-06-26', 'On planet Earth, an analemma is the figure-8 loop you get when you mark the position of the Sun at the same time each day throughout the year. But similarly marking the position of the Sun in the Martian sky would produce the simpler, stretched pear shape in this digital illustration, based on the Mars Pathfinder project\'s famous Presidential Panorama view from the surface. The simulation shows the late afternoon Sun that would have been seen from the Sagan Memorial Station once every 30 Martian days (sols) beginning on Sol 24 (July 29, 1997). Slightly less bright, the simulated Sun is only about two thirds the size as seen from Earth, while the Martian dust, responsible for the reddish sky of Mars, also scatters some blue light around the solar disk. Astronomer Dennis Mammana offers the illustration to mark the hopeful beginning of an exciting new era of robotic exploration of the Red Planet, with two new Mars missions now enroute and one preparing to launch.', 'https://apod.nasa.gov/apod/image/0306/marsalemma_mammana_full.jpg', 'image', 'v1', 'Martian Analemma (Ref 3230)', 'https://apod.nasa.gov/apod/image/0306/marsalemma_mammana_c1.jpg', 'Dennis Mammana\n(Skyscapes)', 'Earth'),
|
||||||
(3232, '2001-07-13', 'The most detailed proposal so far for a hotel and resort destination on the Moon (!) has been prepared by Dutch architect Hans-Jurgen Rombaut. The harsh lunar environment posed serious design challenges but the Moon\'s low, one-sixth-Earth gravity, and the absence of wind were an architectural boon allowing a much more slender and fragile-looking building than would have been possible on Earth. Illustrated here, the structure\'s two 160 meter high needle-like towers soar over the rim of a deep canyon as planet Earth hangs in the lunar sky. To shield the interior, Rombaut designed 50 centimeter thick walls with two outer layers of Moon rock and a 35 centimeter layer of water held between glass planes. The water absorbs energetic cosmic rays and along with the rock helps keep the temperature constant. Windows are framed as holes in the rock layers. Construction materials are intended to be manufactured on the Moon itself. This Moon Hotel design is welcomed by the international Lunar Explorers Society, LUNEX, who hope to construct a robotic Moon base by 2015, ultimately supporting a lunar village by 2040.', 'https://apod.nasa.gov/apod/image/0107/maanhotel_rombaut_big.jpg', 'image', 'v1', 'Welcome to the Moon Hotel (Ref 3231)', 'https://apod.nasa.gov/apod/image/0107/maanhotel_rombaut.jpg', 'Hans-Jurgen Rombaut\n(courtesy Carl Koppeschaar\'s ASTRONET)', 'Earth'),
|
(3232, '2001-07-13', 'The most detailed proposal so far for a hotel and resort destination on the Moon (!) has been prepared by Dutch architect Hans-Jurgen Rombaut. The harsh lunar environment posed serious design challenges but the Moon\'s low, one-sixth-Earth gravity, and the absence of wind were an architectural boon allowing a much more slender and fragile-looking building than would have been possible on Earth. Illustrated here, the structure\'s two 160 meter high needle-like towers soar over the rim of a deep canyon as planet Earth hangs in the lunar sky. To shield the interior, Rombaut designed 50 centimeter thick walls with two outer layers of Moon rock and a 35 centimeter layer of water held between glass planes. The water absorbs energetic cosmic rays and along with the rock helps keep the temperature constant. Windows are framed as holes in the rock layers. Construction materials are intended to be manufactured on the Moon itself. This Moon Hotel design is welcomed by the international Lunar Explorers Society, LUNEX, who hope to construct a robotic Moon base by 2015, ultimately supporting a lunar village by 2040.', 'https://apod.nasa.gov/apod/image/0107/maanhotel_rombaut_big.jpg', 'image', 'v1', 'Welcome to the Moon Hotel (Ref 3231)', 'https://apod.nasa.gov/apod/image/0107/maanhotel_rombaut.jpg', 'Hans-Jurgen Rombaut\n(courtesy Carl Koppeschaar\'s ASTRONET)', 'Earth'),
|
||||||
(3233, '1997-06-23', 'There it goes again. Gas and rock were catapulted hundreds of kilometers into space as Jupiter\'s most volatile moon, Io, showed yet another impressive volcanic display in this just-released photograph by the Hubble Space Telescope. This time the culprit was Pele, a volcano thought previously inactive since photographed by the passing Voyager 1 spacecraft in 1979. The explosion is visible on Io\'s lower left in this false-color photograph, taken in July 1996. Io\'s thin atmosphere and low gravity allow volcanic plumes to rise higher than they would on Earth.', 'https://apod.nasa.gov/apod/image/9706/ioerupt_hst_big.jpg', 'image', 'v1', 'Eruption on Io (Ref 3232)', 'https://apod.nasa.gov/apod/image/9706/ioerupt_hst.jpg', '', 'Earth'),
|
(3233, '1997-06-23', 'There it goes again. Gas and rock were catapulted hundreds of kilometers into space as Jupiter\'s most volatile moon, Io, showed yet another impressive volcanic display in this just-released photograph by the Hubble Space Telescope. This time the culprit was Pele, a volcano thought previously inactive since photographed by the passing Voyager 1 spacecraft in 1979. The explosion is visible on Io\'s lower left in this false-color photograph, taken in July 1996. Io\'s thin atmosphere and low gravity allow volcanic plumes to rise higher than they would on Earth.', 'https://apod.nasa.gov/apod/image/9706/ioerupt_hst_big.jpg', 'image', 'v1', 'Eruption on Io (Ref 3232)', 'https://apod.nasa.gov/apod/image/9706/ioerupt_hst.jpg', '', 'Earth'),
|
||||||
@@ -3354,7 +3354,23 @@ INSERT INTO `EARTH` (`id`, `date`, `explanation`, `hdurl`, `media_type`, `servic
|
|||||||
(3252, '2024-02-26', 'What if there were two moons in the sky -- and they eclipsed each other? This happens on Mars. The featured video shows a version of this unusual eclipse from space. Pictured are the two moons of Mars: the larger Phobos, which orbits closer to the red planet, and the smaller Deimos, which orbits further out. The sequence was captured last year by the ESA’s Mars Express, a robotic spacecraft that itself orbits Mars. A similar eclipse is visible from the Martian surface, although very rarely. From the surface, though, the closer moon Phobos would appear to pass in front of farther moon Deimos. Most oddly, Phobos orbits Mars so close that it appears to move backwards when compared to Earth\'s Moon from Earth, rising in west and setting in the east. Phobos, the closer moon, orbits so close and so fast that it passes nearly overhead about three times a day.', '', 'video', 'v1', 'Martian Moon Eclipses Martian Moon (Ref 3251)', 'https://youtube.com/embed/hwQTH0IGrwE?rel=0', '', 'Earth'),
|
(3252, '2024-02-26', 'What if there were two moons in the sky -- and they eclipsed each other? This happens on Mars. The featured video shows a version of this unusual eclipse from space. Pictured are the two moons of Mars: the larger Phobos, which orbits closer to the red planet, and the smaller Deimos, which orbits further out. The sequence was captured last year by the ESA’s Mars Express, a robotic spacecraft that itself orbits Mars. A similar eclipse is visible from the Martian surface, although very rarely. From the surface, though, the closer moon Phobos would appear to pass in front of farther moon Deimos. Most oddly, Phobos orbits Mars so close that it appears to move backwards when compared to Earth\'s Moon from Earth, rising in west and setting in the east. Phobos, the closer moon, orbits so close and so fast that it passes nearly overhead about three times a day.', '', 'video', 'v1', 'Martian Moon Eclipses Martian Moon (Ref 3251)', 'https://youtube.com/embed/hwQTH0IGrwE?rel=0', '', 'Earth'),
|
||||||
(3253, '2023-02-11', 'The two prominent clouds in this Chilean Atacama Desert skyscape captured on January 21 actually lie beyond our Milky Way galaxy. Known as the Large and the Small Magellanic Clouds they are so named for the 16th century Portuguese explorer Ferdinand Magellan, leader of the first circumnavigation of planet Earth. Famous jewels of southern hemisphere skies, they are the brightest satellite galaxies of the Milky Way. The larger cloud is some 160,000 light-years, and the smaller 210,000 light-years distant. While both are irregular dwarf galaxies in their own right, they exhibit central barred structures in the deep wide-angle view. Wide and deep exposures also reveal faint dusty galactic cirrus nebulae and the imprints of gravitational tidal interactions between the Large and Small Magellanic Clouds.', 'https://apod.nasa.gov/apod/image/2302/magellanic.jpg', 'image', 'v1', 'Magellanic Clouds over Chile (Ref 3252)', 'https://apod.nasa.gov/apod/image/2302/magellanic1200.jpg', 'Felipe Mac Auliffe López', 'Earth'),
|
(3253, '2023-02-11', 'The two prominent clouds in this Chilean Atacama Desert skyscape captured on January 21 actually lie beyond our Milky Way galaxy. Known as the Large and the Small Magellanic Clouds they are so named for the 16th century Portuguese explorer Ferdinand Magellan, leader of the first circumnavigation of planet Earth. Famous jewels of southern hemisphere skies, they are the brightest satellite galaxies of the Milky Way. The larger cloud is some 160,000 light-years, and the smaller 210,000 light-years distant. While both are irregular dwarf galaxies in their own right, they exhibit central barred structures in the deep wide-angle view. Wide and deep exposures also reveal faint dusty galactic cirrus nebulae and the imprints of gravitational tidal interactions between the Large and Small Magellanic Clouds.', 'https://apod.nasa.gov/apod/image/2302/magellanic.jpg', 'image', 'v1', 'Magellanic Clouds over Chile (Ref 3252)', 'https://apod.nasa.gov/apod/image/2302/magellanic1200.jpg', 'Felipe Mac Auliffe López', 'Earth'),
|
||||||
(3254, '2025-01-24', 'Comet C/2024 G3 ATLAS has made a dramatic appearance in planet Earth\'s skies. A visitor from the distant Oort Cloud, the comet reached its perihelion on January 13. On January 19, the bright comet was captured here from ESO Paranal Observatory in the Atacama desert in Chile. Sporting spectacular sweeping dust tails, this comet ATLAS is setting in the southern hemisphere twilight and was clearly visible to the unaided eye. In the foreground is the closed shell of one of the observatory\'s famous auxiliary telescopes. Still wowing southern hemisphere observers, the comet\'s bright coma has become diffuse, its icy nucleus apparently disintegrating following its close approach to the Sun. Growing Gallery: Comet ATLAS (G3)', 'https://apod.nasa.gov/apod/image/2501/C2024G3_ATLAS_ESO_Beletsky.jpg', 'image', 'v1', 'Comet G3 ATLAS: a Tail and a Telescope (Ref 3253)', 'https://apod.nasa.gov/apod/image/2501/C2024G3_ATLAS_ESO_Beletsky.jpg', 'Yuri Beletsky', 'Earth'),
|
(3254, '2025-01-24', 'Comet C/2024 G3 ATLAS has made a dramatic appearance in planet Earth\'s skies. A visitor from the distant Oort Cloud, the comet reached its perihelion on January 13. On January 19, the bright comet was captured here from ESO Paranal Observatory in the Atacama desert in Chile. Sporting spectacular sweeping dust tails, this comet ATLAS is setting in the southern hemisphere twilight and was clearly visible to the unaided eye. In the foreground is the closed shell of one of the observatory\'s famous auxiliary telescopes. Still wowing southern hemisphere observers, the comet\'s bright coma has become diffuse, its icy nucleus apparently disintegrating following its close approach to the Sun. Growing Gallery: Comet ATLAS (G3)', 'https://apod.nasa.gov/apod/image/2501/C2024G3_ATLAS_ESO_Beletsky.jpg', 'image', 'v1', 'Comet G3 ATLAS: a Tail and a Telescope (Ref 3253)', 'https://apod.nasa.gov/apod/image/2501/C2024G3_ATLAS_ESO_Beletsky.jpg', 'Yuri Beletsky', 'Earth'),
|
||||||
(3255, '2006-03-19', 'Our Solar System is a busy place. Although the major planets get the most press, a swarm of rocks, comets, and asteroids also exist. The above plot shows the placement of known inner Solar System objects on 2002 July 20. The light blue lines indicate the orbits of planets. The green dots indicate asteroids, officially known as minor planets. The red dots indicate asteroids that come within 1.3 Earth-Sun distances (AU) of the Sun and so pose an increased (although small) collision risk with the Earth. Comets appear as dark blue squares, while dark blue points are Jupiter Trojans, asteroids that orbit just ahead of, or just behind Jupiter. Note that most asteroids of the inner Solar System orbit between Mars and Jupiter in the main asteroid belt. Every day this plot shifts with objects nearer the Sun typically shifting the most. The current locations of these objects can be found here.', 'https://apod.nasa.gov/apod/image/0207/innersolsys_cfa_big.gif', 'image', 'v1', 'Our Busy Solar System (Ref 3254)', 'https://apod.nasa.gov/apod/image/0207/innersolsys_cfa.gif', 'MPC, \nCBAT, \nHarvard CfA, \nIAU', 'Earth'),
|
(3255, '2006-03-19', 'Our Solar System is a busy place. Although the major planets get the most press, a swarm of rocks, comets, and asteroids also exist. The above plot shows the placement of known inner Solar System objects on 2002 July 20. The light blue lines indicate the orbits of planets. The green dots indicate asteroids, officially known as minor planets. The red dots indicate asteroids that come within 1.3 Earth-Sun distances (AU) of the Sun and so pose an increased (although small) collision risk with the Earth. Comets appear as dark blue squares, while dark blue points are Jupiter Trojans, asteroids that orbit just ahead of, or just behind Jupiter. Note that most asteroids of the inner Solar System orbit between Mars and Jupiter in the main asteroid belt. Every day this plot shifts with objects nearer the Sun typically shifting the most. The current locations of these objects can be found here.', 'https://apod.nasa.gov/apod/image/0207/innersolsys_cfa_big.gif', 'image', 'v1', 'Our Busy Solar System (Ref 3254)', 'https://apod.nasa.gov/apod/image/0207/innersolsys_cfa.gif', 'MPC, \nCBAT, \nHarvard CfA, \nIAU', 'Earth');
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Déchargement des données de la table `SUN`
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `SUN` (`id`, `date`, `explanation`, `hdurl`, `media_type`, `service_version`, `title`, `url`, `copyright`, `planete_nom`) VALUES
|
||||||
|
(1, '2024-05-21', 'A spectacular view of the Sun.', 'https://apod.nasa.gov/apod/image/2405/sun.jpg', 'image', 'v1', 'The Sun', 'https://apod.nasa.gov/apod/image/2405/sun.jpg', 'NASA', 'Sun');
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Déchargement des données de la table `MOON`
|
||||||
|
--
|
||||||
|
|
||||||
|
INSERT INTO `MOON` (`id`, `date`, `explanation`, `hdurl`, `media_type`, `service_version`, `title`, `url`, `copyright`, `planete_nom`) VALUES
|
||||||
|
(1, '2024-05-20', 'The Earth\'s Moon.', 'https://apod.nasa.gov/apod/image/2405/moon.jpg', 'image', 'v1', 'The Moon', 'https://apod.nasa.gov/apod/image/2405/moon.jpg', 'NASA', 'Moon');
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
(3256, '2019-09-05', 'The 16th century Portuguese navigator Ferdinand Magellan and his crew had plenty of time to study the southern sky during the first circumnavigation of planet Earth. As a result, two fuzzy cloud-like objects easily visible to southern hemisphere skygazers are known as the Clouds of Magellan, now understood to be satellite galaxies of our much larger, spiral Milky Way galaxy. About 160,000 light-years distant in the constellation Dorado, the Large Magellanic Cloud (LMC) is seen here in a remarkably deep, colorful, image. Spanning about 15,000 light-years or so, it is the most massive of the Milky Way\'s satellite galaxies and is the home of the closest supernova in modern times, SN 1987A. The prominent patch below center is 30 Doradus, also known as the magnificent Tarantula Nebula, a giant star-forming region about 1,000 light-years across.', 'https://apod.nasa.gov/apod/image/1909/Magellano22detail22_1980enan11curves11.jpg', 'image', 'v1', 'The Large Cloud of Magellan (Ref 3255)', 'https://apod.nasa.gov/apod/image/1909/Magellano22detail22_1980enan11curves11_s1024.jpg', 'Alessandro\nCipolat Bares', 'Earth'),
|
(3256, '2019-09-05', 'The 16th century Portuguese navigator Ferdinand Magellan and his crew had plenty of time to study the southern sky during the first circumnavigation of planet Earth. As a result, two fuzzy cloud-like objects easily visible to southern hemisphere skygazers are known as the Clouds of Magellan, now understood to be satellite galaxies of our much larger, spiral Milky Way galaxy. About 160,000 light-years distant in the constellation Dorado, the Large Magellanic Cloud (LMC) is seen here in a remarkably deep, colorful, image. Spanning about 15,000 light-years or so, it is the most massive of the Milky Way\'s satellite galaxies and is the home of the closest supernova in modern times, SN 1987A. The prominent patch below center is 30 Doradus, also known as the magnificent Tarantula Nebula, a giant star-forming region about 1,000 light-years across.', 'https://apod.nasa.gov/apod/image/1909/Magellano22detail22_1980enan11curves11.jpg', 'image', 'v1', 'The Large Cloud of Magellan (Ref 3255)', 'https://apod.nasa.gov/apod/image/1909/Magellano22detail22_1980enan11curves11_s1024.jpg', 'Alessandro\nCipolat Bares', 'Earth'),
|
||||||
(3257, '2024-05-17', 'This well-composed composite panoramic view looks due south from Banks Peninsula near Christchurch on New Zealand\'s South Island. The base of a tower-like rocky sea stack is awash in the foreground, with stars of the Southern Cross at the top of the frame and planet Earth\'s south celestial pole near center. Still, captured on May 11, vibrant aurora australis dominate the starry southern sea and skyscape. The shimmering southern lights were part of extensive auroral displays that entertained skywatchers in northern and southern hemispheres around planet Earth, caused by intense geomagnetic storms. The extreme spaceweather was triggered by the impact of coronal mass ejections launched from powerful solar active region AR 3664. AuroraSaurus: Report your aurora observations', 'https://apod.nasa.gov/apod/image/2405/DSC_6363Panorama-2.jpg', 'image', 'v1', 'Aurora Banks Peninsula (Ref 3256)', 'https://apod.nasa.gov/apod/image/2405/DSC_6363Panorama-2_600.jpg', 'Kavan Chay', 'Earth'),
|
(3257, '2024-05-17', 'This well-composed composite panoramic view looks due south from Banks Peninsula near Christchurch on New Zealand\'s South Island. The base of a tower-like rocky sea stack is awash in the foreground, with stars of the Southern Cross at the top of the frame and planet Earth\'s south celestial pole near center. Still, captured on May 11, vibrant aurora australis dominate the starry southern sea and skyscape. The shimmering southern lights were part of extensive auroral displays that entertained skywatchers in northern and southern hemispheres around planet Earth, caused by intense geomagnetic storms. The extreme spaceweather was triggered by the impact of coronal mass ejections launched from powerful solar active region AR 3664. AuroraSaurus: Report your aurora observations', 'https://apod.nasa.gov/apod/image/2405/DSC_6363Panorama-2.jpg', 'image', 'v1', 'Aurora Banks Peninsula (Ref 3256)', 'https://apod.nasa.gov/apod/image/2405/DSC_6363Panorama-2_600.jpg', 'Kavan Chay', 'Earth'),
|
||||||
(3258, '2002-01-19', 'Galaxies are made up of stars, but are all stars found within galaxies? Using the Hubble Space Telescope, researchers exploring the Virgo Cluster of galaxies have found about 600 red giant stars adrift in intergalactic space. Above is an artist\'s vision of the sky from a hypothetical planet of such a lonely sun. The night sky on a world orbiting an intergalactic star would be a stark contrast to Earth\'s - which features a spectacle of stars, all members of our own Milky Way Galaxy. As suggested by the illustration, a setting red sun would leave behind a dark sky flecked only with faint, fuzzy, apparitions of Virgo Cluster galaxies. Possibly ejected from their home galaxies during galaxy-galaxy collisions, these isolated suns may well represent part of a large, previously unseen stellar population, filling the space between Virgo Cluster galaxies.', 'https://apod.nasa.gov/apod/image/0201/vcstars_illust_big.jpg', 'image', 'v1', 'Stars Without Galaxies (Ref 3257)', 'https://apod.nasa.gov/apod/image/0201/vcstars_illust.jpg', '', 'Earth'),
|
(3258, '2002-01-19', 'Galaxies are made up of stars, but are all stars found within galaxies? Using the Hubble Space Telescope, researchers exploring the Virgo Cluster of galaxies have found about 600 red giant stars adrift in intergalactic space. Above is an artist\'s vision of the sky from a hypothetical planet of such a lonely sun. The night sky on a world orbiting an intergalactic star would be a stark contrast to Earth\'s - which features a spectacle of stars, all members of our own Milky Way Galaxy. As suggested by the illustration, a setting red sun would leave behind a dark sky flecked only with faint, fuzzy, apparitions of Virgo Cluster galaxies. Possibly ejected from their home galaxies during galaxy-galaxy collisions, these isolated suns may well represent part of a large, previously unseen stellar population, filling the space between Virgo Cluster galaxies.', 'https://apod.nasa.gov/apod/image/0201/vcstars_illust_big.jpg', 'image', 'v1', 'Stars Without Galaxies (Ref 3257)', 'https://apod.nasa.gov/apod/image/0201/vcstars_illust.jpg', '', 'Earth'),
|
||||||
|
|||||||
+24
-10
@@ -104,14 +104,16 @@ CREATE TABLE `MERCURY` (
|
|||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE `MOON` (
|
CREATE TABLE `MOON` (
|
||||||
`date` date NOT NULL,
|
`id` int(11) NOT NULL,
|
||||||
`explanation` text NOT NULL,
|
`date` date DEFAULT NULL,
|
||||||
|
`explanation` text DEFAULT NULL,
|
||||||
`hdurl` varchar(255) DEFAULT NULL,
|
`hdurl` varchar(255) DEFAULT NULL,
|
||||||
`media_type` varchar(50) DEFAULT NULL,
|
`media_type` varchar(50) DEFAULT NULL,
|
||||||
`service_version` varchar(10) DEFAULT NULL,
|
`service_version` varchar(10) DEFAULT NULL,
|
||||||
`title` varchar(255) DEFAULT NULL,
|
`title` varchar(255) DEFAULT NULL,
|
||||||
`url` varchar(255) DEFAULT NULL,
|
`url` varchar(255) DEFAULT NULL,
|
||||||
`copyright` varchar(255) DEFAULT NULL
|
`copyright` varchar(255) DEFAULT NULL,
|
||||||
|
`planete_nom` varchar(20) DEFAULT 'Moon'
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
@@ -159,14 +161,16 @@ CREATE TABLE `SATURN` (
|
|||||||
--
|
--
|
||||||
|
|
||||||
CREATE TABLE `SUN` (
|
CREATE TABLE `SUN` (
|
||||||
`date` date NOT NULL,
|
`id` int(11) NOT NULL,
|
||||||
`explanation` text NOT NULL,
|
`date` date DEFAULT NULL,
|
||||||
|
`explanation` text DEFAULT NULL,
|
||||||
`hdurl` varchar(255) DEFAULT NULL,
|
`hdurl` varchar(255) DEFAULT NULL,
|
||||||
`media_type` varchar(50) DEFAULT NULL,
|
`media_type` varchar(50) DEFAULT NULL,
|
||||||
`service_version` varchar(10) DEFAULT NULL,
|
`service_version` varchar(10) DEFAULT NULL,
|
||||||
`title` varchar(255) DEFAULT NULL,
|
`title` varchar(255) DEFAULT NULL,
|
||||||
`url` varchar(255) DEFAULT NULL,
|
`url` varchar(255) DEFAULT NULL,
|
||||||
`copyright` varchar(255) DEFAULT NULL
|
`copyright` varchar(255) DEFAULT NULL,
|
||||||
|
`planete_nom` varchar(20) DEFAULT 'Sun'
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
@@ -239,8 +243,7 @@ ALTER TABLE `MERCURY`
|
|||||||
-- Index pour la table `MOON`
|
-- Index pour la table `MOON`
|
||||||
--
|
--
|
||||||
ALTER TABLE `MOON`
|
ALTER TABLE `MOON`
|
||||||
ADD PRIMARY KEY (`date`),
|
ADD PRIMARY KEY (`id`);
|
||||||
ADD KEY `title` (`title`);
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Index pour la table `NEPTUNE`
|
-- Index pour la table `NEPTUNE`
|
||||||
@@ -258,8 +261,7 @@ ALTER TABLE `SATURN`
|
|||||||
-- Index pour la table `SUN`
|
-- Index pour la table `SUN`
|
||||||
--
|
--
|
||||||
ALTER TABLE `SUN`
|
ALTER TABLE `SUN`
|
||||||
ADD PRIMARY KEY (`date`),
|
ADD PRIMARY KEY (`id`);
|
||||||
ADD KEY `title` (`title`);
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Index pour la table `URANUS`
|
-- Index pour la table `URANUS`
|
||||||
@@ -301,6 +303,12 @@ ALTER TABLE `MARS`
|
|||||||
ALTER TABLE `MERCURY`
|
ALTER TABLE `MERCURY`
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- AUTO_INCREMENT pour la table `MOON`
|
||||||
|
--
|
||||||
|
ALTER TABLE `MOON`
|
||||||
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT pour la table `NEPTUNE`
|
-- AUTO_INCREMENT pour la table `NEPTUNE`
|
||||||
--
|
--
|
||||||
@@ -313,6 +321,12 @@ ALTER TABLE `NEPTUNE`
|
|||||||
ALTER TABLE `SATURN`
|
ALTER TABLE `SATURN`
|
||||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||||
|
|
||||||
|
--
|
||||||
|
-- AUTO_INCREMENT pour la table `SUN`
|
||||||
|
--
|
||||||
|
ALTER TABLE `SUN`
|
||||||
|
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- AUTO_INCREMENT pour la table `URANUS`
|
-- AUTO_INCREMENT pour la table `URANUS`
|
||||||
--
|
--
|
||||||
|
|||||||
+12
-10
@@ -13,15 +13,17 @@ try {
|
|||||||
$planetId = isset($_GET['planet']) ? $_GET['planet'] : '';
|
$planetId = isset($_GET['planet']) ? $_GET['planet'] : '';
|
||||||
|
|
||||||
$allowedTables = [
|
$allowedTables = [
|
||||||
'mercury' => 'MERCURY',
|
'mercury' => 'MERCURY',
|
||||||
'venus' => 'VENUS',
|
'venus' => 'VENUS',
|
||||||
'earth' => 'EARTH',
|
'earth' => 'EARTH',
|
||||||
'mars' => 'MARS',
|
'mars' => 'MARS',
|
||||||
'jupiter' => 'JUPITER',
|
'jupiter' => 'JUPITER',
|
||||||
'saturn' => 'SATURN',
|
'saturn' => 'SATURN',
|
||||||
'uranus' => 'URANUS',
|
'uranus' => 'URANUS',
|
||||||
'neptune' => 'NEPTUNE'
|
'neptune' => 'NEPTUNE',
|
||||||
];
|
'sun' => 'SUN',
|
||||||
|
'moon' => 'MOON',
|
||||||
|
];
|
||||||
|
|
||||||
if ($planetId === 'quiz') {
|
if ($planetId === 'quiz') {
|
||||||
$queries = [];
|
$queries = [];
|
||||||
@@ -36,7 +38,7 @@ try {
|
|||||||
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
$results = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
$questions = [];
|
$questions = [];
|
||||||
$allPlanets = ['Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter', 'Saturn', 'Uranus', 'Neptune'];
|
$allPlanets = ['Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter', 'Saturn', 'Uranus', 'Neptune','Sun' , 'Moon'];
|
||||||
|
|
||||||
foreach ($results as $row) {
|
foreach ($results as $row) {
|
||||||
$correctEn = $row['planete_nom'];
|
$correctEn = $row['planete_nom'];
|
||||||
|
|||||||
Reference in New Issue
Block a user