I currently have a page that displays the top public entry as follows
<?php
include '../include/config.php';
include '../include/opendb.php';
$query = "SELECT id, title, entry, public, date FROM tbldevotional WHERE public='1' ORDER BY id DESC";
$result = mysql_query($query) or die('Error, query failed');
$entry = mysql_fetch_array($result, MYSQL_ASSOC);
echo "<p align='center'><span class='devotionaltitle'>{$entry['title']} </span></p>" .
"{$entry['entry']}<p></p><p><span class='linkurl'>{$entry['date']}</span></p>";
echo "<hr>";
?>
At the bottom of the page is the following form:
<form action="" method="post" name="form1" target="_self">
<div align="right">
<p>Past Thoughts<br>
<select name="select">
<?php
include '../include/config.php';
include '../include/opendb.php';
$query = "SELECT id, title, public FROM tbldevotional WHERE public='1' ORDER BY title DESC";
$result = mysql_query($query) or die('Error : ' . mysql_error());
while(list($id, $title, $public) = mysql_fetch_array($result, MYSQL_NUM))
{
?>
<option value="<?=$id;?>"><?=$title;?></option>
<?php
}
include '../include/closedb.php';
?>
</select>
<input type="submit" name="Submit" value="Submit">
</p>
</div>
</form>
What do I need to do to the form/page so that when the user selects a previous entry it goes to that page i.e. does something like:
devotional.php?id=3