'; $content .= $node[content]; $content .= '

'; $title = $node[title]; $unixdate = $node[date]; $header = $title; $content = "$content

Added on: " . date("l, F j", $unixdate) . date(" g.i a", $unixdate) . ". Made by $node[author].

"; $result = query("select * from jcsref_comments where parentID = $node[id] order by timestamp limit 0"); if (mysql_numrows($result)) { $content .= '


Comments

'; } while ($row = mysql_fetch_array($result)) { $timestamp = date("l, F j g.i. a", $row[timestamp]); $row[body] = nl2br($row[body]); $content .= <<< END
Posted on $timestamp by $row[author]
$row[title] - $row[body]
END; } $conte6nt .= <<< END


Add comment

Note: keep it sane. Excessive swearing will be deleted, personal attacks are not tolerated either. IPs are recorded.

Author:
Title:

END; main("Viewing node $node[title]", "$header", "$content");