Hi all, I'm somewhat new to PHP/programming in general and having a problem wrapping my head around what should be a simple concept.
On one page, I'm listing news stories from a MySQL database(basic coding below). When the user clicks a headline I want to print the whole story into a new page which uses a Dreamweaver template. Or perhaps an unformatted page which is "included" in a template? I'm very unclear on what should happen when the user clicks the headline.
<?php
include_once ("classes/WebNews_vo.php");
$dao = new WebNewsDAO();
$volist = $dao->findWhere("");
foreach($volist as $vo)
{
//echo("$vo->http - $vo->tekst<br />");
// print (date("dMy",$vo->dato) . ": " . $vo->headline . " <br>" . $vo->shorttext . "<br><br>");
print (date("d m y",StrtoTime($vo->dato)) . ": <b>" . $vo->headline . "</b> <br>" . $vo->shorttext . " >>><br><br>");
}
?>