<?php
include('wlrb_files/functions/functions_general.php');
include('wlrb_files/config.php');
//$custom_vars = getCustomVars();
$result = mysql_query('
SELECT *
FROM wlrb_recipes
WHERE wlrb_recipes_id = "' . $_GET['id'] . '"');
$row = mysql_fetch_array($result);
if ($row['wlrb_recipes_submitter'] != '') {
$submitter = ' by ' .$row['wlrb_recipes_submitter'];
}
$content = '<h1>' . $row['wlrb_recipes_title'] . $submitter . '</h1>' . $row['wlrb_recipes_content'];
$page_title = $row['wlrb_recipes_title'];
$result = mysql_query('
SELECT *
FROM wlrb_categories
WHERE wlrb_categories_id = "' . $row['wlrb_categories_id'] . '"');
$category = mysql_fetch_array($result);
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="wlrb_files/styles/default.css">
<title><?php echo $page_title; ?></title>
</head>
<body>
<div class="align-center">
<a href="wlrb-recipe-categories.php"><img src="wlrb_files/images/browse_categories.gif" alt="Browse Categories" /></a> <a href="wlrb-submit.php"><img src="wlrb_files/images/submit_recipe.gif" alt="Submit Recipe" /></a></div>
<div class="main">
<p><a href="wlrb-recipe-categories.php">Category List</a> >> <a href="wlrb-recipes.php?category=<?php echo $row['wlrb_categories_id']; ?>">Recipies in <?php echo $category['wlrb_categories_title']; ?> Category</a></p>
<?php echo $content; ?>
</div>
<p class="align-center">Powered by <a href="http://www.my-health-and-fitness.org">My-Health-and-Fitness.org</a></p>
</body>
</html>