gevo12321 Posted June 23, 2007 Share Posted June 23, 2007 ok so i have a list of the articles and dates in this code: <?php require_once('connect.php'); $query=mysql_query("SELECT date,title FROM news ORDER BY date desc") or die(mysql_error()); while($row=mysql_fetch_object($query)) { $date1=$row->date; $title=$row->title; $date=date('m-d-Y',strtotime($date1)); echo $date; echo " "; echo $title; echo "<br>"; } ?> I want to have a link for each code to the corresponding article and all the articles use the same template each article is a different row in mysql how do i do this? Link to comment https://forums.phpfreaks.com/topic/56886-solved-need-help-with-templates/ Share on other sites More sharing options...
AndyB Posted June 23, 2007 Share Posted June 23, 2007 You already have an open thread asking exactly the same question (and which appears to contain the solution). Thread closed. Link to comment https://forums.phpfreaks.com/topic/56886-solved-need-help-with-templates/#findComment-281064 Share on other sites More sharing options...
Recommended Posts