Yappy Dog,
I inserted the code after the echo in the query and got the returned results:
query = SELECT title, poster, mail, date, newsfull FROM ibwdnews WHERE id = 29
So it's reading the id properly, but I can't seem to get the sql statements working properly..
I changed the order of variables.
Now have the following but argh, still receiving an error.
<?
include("header.inc");
$id = $_GET["id"];
if(isset($id)){
$linkID = @mysql_connect("localhost", "", "");
mysql_select_db("news", $linkID);
$query = "SELECT title, poster, mail, date, newsfull FROM ibwdnews WHERE id = $id";
$resultID = mysql_query($query, $linkID);
while (list($title, $poster, $mail, $date, $newsfull) = mysql_fetch_row($resultID)); {
$print = "
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">
<tr>
<td width=\"100%\" bgcolor=\"#F8F8F8\">
<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td><b>$title</b> by $poster</td>
<td>
<p align=\"right\"><a href=\"mailto:$mail\">Email Me</a> | $date</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width=\"100%\">$newsfull</td>
</tr>
</table>\n<br>\n
";
echo $print;
}
}
?>
<?php include("footer.inc"); ?>