here is the code to retrieve the recipe -
<?php
//hostname
$servername='localhost';
//username and password
$dbusername='user_name';
$dbpassword='pass_word';
//database name
$dbname='date_base_name';
connecttodb($servername,$dbname,$dbusername,$dbpassword);
function connecttodb($servername,$dbname,$dbusername,$dbpassword)
{
global $link;
$link=mysql_connect ("$servername","$dbusername","$dbpassword");
if(!$link){die("could not connect to database");}
mysql_select_db("$dbname",$link) or die ("Could not open db".mysql_error());
}
//query for data
$sql=mysql_query("SELECT * FROM table_name ORDER BY Rand() LIMIT 1");
//open HTML ordered list
//loop query results
while($row=mysql_fetch_array($sql)) {
echo $row['title'];
echo '<pre>'.$row['ingredients'].'</pre>';
echo '<ol>'.'<li>'.$row['prep'].'</li>';
}
echo'</ol>';
?>
this is data from one "prep" field exactly the way it looks in the database.
In a skillet, heat oil over medium. Saute onion until tender.
Remove and set aside. Brown beef and pork together. Drain.
Combine onion, meat, potatoes and seasonings.
Line pie plate with pastry. Fill with meat mixture.
Top with crust. Seal and flute edges. Make slits in top crust. Brush with egg if desired.
Bake at 375 degrees F for 30-35 minutes or until golden brown.
Is this what you need?