I have a link that is being parsed on my headline news page that I want linked to a specific ID in a file called newsfull.php.
The link on the headline news page looks like this:
i.e. newsfull.php?id=15
How do I capture the ID number on newsfull.php (file below) and display its $id,$title,$date,$poster,$mail,$newsfull values?
Thanks
<?
if($action == "$id"){
$result = mysql_query("select count(date) from $table order by date DESC");
$numrows = mysql_result($result, 0, 0);
$result = mysql_query("select * from $table order by date DESC limit $offset,$limit");
while (list($id,$title,$date,$poster,$mail,$newsfull) = mysql_fetch_row($result)) {
$d = explode("-",$date);
$day = $d[2];
$month = $d[1];
$year = $d[0];
$hour = $d[3];
$min = $d[4];
//############\\
// dateformat:\\
$thedate = "$month/$day/$year - $hour:$min";
//############\\
// NEWS FORMAT
$print = "
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">
<tr>
<td width=\"100%\" bgcolor=\"#EEEEEE\">
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><b>$title</b></td>
<td>
<p align=\"right\">$thedate</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=\"100%\">$newsfull</td>
</tr>
</table>\n<br>\n
";
// END NEWS FORMAT
echo $print;
}
}
?>