Location: PHPKode > projects > ExPHPresso > exPHPresso-0.0.2/print_allrecipes.php
<?php include("config.php"); ?>

<html>

<head>

<title>Lite Version</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">

<!--

.sm {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; word-spacing: 3px}

-->

</style>

</head>

<body bgcolor="#ffffff" text="#000000">

<p><a href="#" onClick="window.print();return false"><img src="images/print.gif" alt="" border="0" width="20" height="20"></a> 

  <b><font face="Arial, Helvetica, sans-serif" size="2"> ALL RECIPES</font></b></p>

		

<?

		$result=mysql_query("SELECT coffee_name,coffee_details FROM coffees ORDER BY id;");

		while (list($coffee_name, $coffee_details,) = mysql_fetch_row($result))

		{	echo "<table width=550><tr><td>";

		if ($coffee_name > 0) {

	    list($coffee_name) = mysql_fetch_row(mysql_query("select coffee_name from coffees where id = \"$id\""));

		}

		echo "<b>$coffee_name</b><br>" ;

		echo " Recipes : $coffee_details" ;

		echo "<br><hr noshade><br>" ;

		echo "</td></tr></table>" ;

	

		} 

		?>

<p>&nbsp;</p>

</body>

</html>

Return current item: ExPHPresso