echo $name; ?>
(Click and drag to spin the crystal around)
Formula: echo $formula; ?>
echo $description; ?>
if ($image_id != "") { echo "include '../head.php' ?>
$navmode = "database"; include '../nav.php'; ?> echo $id = $_GET['id']; $username="www"; $database="crystals"; mysql_connect(localhost,$username); @mysql_select_db($database) or die( "Unable to select database"); $query= "SELECT * FROM crystals WHERE id=$id"; $result=mysql_query($query) or die(mysql_error()); $name = mysql_result($result,0,"name"); $formula = mysql_result($result,0,"formula"); $description = mysql_result($result,0,"description"); $image_id = mysql_result($result,0,"image_id"); mysql_close(); ?>Formula: echo $formula; ?>
echo $description; ?>
if ($image_id != "") { echo "