Details

if (isset($_GET['id']))
{
//require_once ('./scripts/mysql_connect.php');

$todoid = $_GET['id'];
// echo $todoid;

$query = "SELECT title, date, done, details, datedue FROM todo WHERE todo_id='$todoid'";
$result = mysql_query ($query);
while ($row = mysql_fetch_array($result))
{
$title = $row['title'];
$date = $row['date'];
$did = $row['done'];
$details = $row['details'];
$datedue = $row['datedue'];
if ($did == '2')
{
$done = 'Yes';
}
else
{
$done = 'No';
}
echo 'Title: ‘ . $title . ‘

‘;
echo ‘Date Posted: ‘ . $date . ‘

‘;
echo ‘Date Due: ‘ . $datedue . ‘

‘;
echo ‘Done Yet? ‘ . $done . ‘

‘;
echo ‘Details: ‘ . $details . ‘

‘;
// echo $title;
}
}

else
{
// header(‘Location: http://www.matthewgruman.com’);
// echo ‘

You’ve arrived here by accident.

‘;
} */
echo ‘

The To-Do List is no more. Send me an email if you want the application code.

‘;
?>