Ok, i have spent way too long trying to find a fix for what I want to do. Maybe you can help me out.
Here's what I'm trying to do. I have made a new "extra" page, I created the regular template to house the $php_output and then the php template. I'm trying to make the php code pull a single post and display it's body information into the page. I have had no luck so far. Here is what I currently have.
Code:
$query = 'SELECT pagetext FROM post WHERE postid = 20886';
if ($r = mysql_query($query))
{
while ($row = mysql_fetch_array ($r))
{
echo $row['pagetext'];
}
}
What am I missing here? The page loads fine, but the body of the post doesn't output. Any help on this would be greatly appreciate because I just don't know what to do now.