mysql_connect("localhost", "casey_laketrout", "6ddDd@ueuDK7"); mysql_select_db("casey_thebigcookbook"); $recipeid = mysql_real_escape_string($_GET['recipeid']); $recipeinfo=mysql_fetch_array(mysql_query("select type, ingredients, proc, yields, name from recipes where recipeid='$recipeid'")); ?>
Type: | echo $recipeinfo[type]; ?> |
Ingredients: | echo nl2br($recipeinfo[ingredients]); ?> |
Procedure: | echo nl2br($recipeinfo[proc]); ?> |
Yields: | echo $recipeinfo[yields]; ?> |