Right now I have:
[php]
$page_id = 0;
$page_id = $_GET[‘id’];
if ($page_id==0)
{
echo “
Error: Page ID Not specified. Comments disabled.”;
}
else
{
echo “
Comments:
”;
$con = mysql_connect(“localhost”,“dbname”,“dbass”);
if (!$con)
{
die('Could not connect: ’ . mysql_error());
}
mysql_select_db(“dbname”, $con);
$comments = mysql_query (“SELECT * FROM comments WHERE Page==$page_id”);
echo $comments[‘Content’];
mysql_close ($con);
}
[/php]
to try and display all content values from a table where the value for “Page” is equal to $page_id specified in the url. However, I have to records in the table that fit this specification, and the content value isn’t visible.