include("./config/config.php"); if($_GET['rid'] < 1){ header("Location: ./index.php"); } $query = mysql_query("SELECT * FROM ".$cfg['recipesTable']." WHERE ID='".$_GET['rid']."' LIMIT 1"); $data = mysql_fetch_assoc($query); $str[] = ""; $str[] = ""; $str[] = "
"; $str[] = "