here's the code for my page, I thought I had it attached to the first thread
<?php
$db = mysql_connect("localhost", "church_devo");
mysql_select_db("church_crave",$db);
$result = mysql_query("SELECT * FROM devo WHERE index = $day",$db);
if ($myrow = mysql_fetch_array($result)) {
do {
printf("<font size=+1>%s - $day</font><hr>%s<br>Objective: %s<hr><br>%s<br><br> %s<br> %s<br></face>\n", $myrow["title"], $myrow["topic"], $myrow["objective"], $myrow["mondayVerse"], $myrow["mondayQuestions"], "<TEXTAREA ROWS=5 COLS=48></TEXTAREA>");
} while ($myrow = mysql_fetch_array($result));
} else {
echo "Sorry, no records were found!";
}
?>
The table is set up with each row is a week.
there are 5 lessons per week, 1 theme per week, 1 topic.
you can see it in action at :
http://www.fairmountwesleyan.org/devo.html