// NOTE: this is a copy of the base spectra.php, tweaked for the data differences in batch 2 of nebulae data
//This page displays details for a chosen nebula.
//It contains a php script to feed a grapher applet with parameters, and to
//fetch usual data (RA, Dec, Galactic Coordinates...), for the nebula chosen
//The grapher applet draws the spectra, and the table below shows properties of the nebula
?>
$object = $_GET['neb'];
if (!(preg_match('/^[a-zA-Z0-9- ]*$/', $object))) {
$object = "";
}
echo "Detail Information for $object";
?>
//connect to the database
include('./includes/open.php');
//Save a copy of the nebula name before we modify it
$name = $object;
//Correct the nebobject's name so we can find it in the nebobject.
//nebobjecct and nebcords use different naming schemes.
$object = str_replace("- ","-{",$object);
$object = str_replace(" ","",$object);
$object = str_replace("-{","- ",$object);
echo"
//Display other relevant information on the bottom of this page
$nebQuery = "SELECT * from `nebdata2` WHERE `nebobject`='$name'";
$result2 = mysql_query($nebQuery);
?>