$query = “SELECT * FROM recipes WHERE id = ‘” . $_GET[‘id’] . “‘”; $result = mysql_query($query) or die(mysql_error()); while ($row = mysql_fetch_array($result)) { $winery = $row[‘winery’]; $recipe_name = $row[‘recipe_name’]; $ingrdnt_rt_colm = $row[‘ingrdnt_rt_colm’]; $ingrdnt_lt_colm = $row[‘ingrdnt_lt_colm’]; $instructions = $row[‘instructions’]; $image = $row[‘image’]; $web_site = $row[‘web_site’]; $web_site_name = $row[‘web_site_name’]; } echo ”

“;
echo ““.$recipe_name.”“;
// See if Image exist
if ($image == null)
{
echo “”;
} else
{
echo ”

“;
}
// See if winery exist
if ($winery == null)
{
echo “”;
} else
{
echo ”

$winery

“;
}
// See if Website exist
if ($web_site_name == null)
{
echo “”;
} else
{
echo ”

$web_site_name

“;
}
echo ”

“; echo “”; echo “”;
echo “”;
echo “”;
echo ”

“;
if ($ingrdnt_rt_colm == null)
{
echo “”;
} else
{
echo “$ingrdnt_rt_colm”;
}
echo “
“;
if ($ingrdnt_lt_colm == null)
{
echo “”;
} else
{
echo “$ingrdnt_lt_colm”;
}
echo “

“;
// See if Instructions exist
if ($instructions == null)
{
echo “”;
} else
{
echo ”

$instructions

“;
}
echo ”
“;
echo “Return to previous page“;

?>