<?php
$url = "/forum"; // If url is - http://www.yourforums.com/forums , then enter in "/forums"
$ppath = "/home/conehead/public_html/forum/config.php"; // Physical path to the config.php file
if(empty($count))
$count = "5"; // How many topics to link to
include_once("$ppath");
$db = @mysql_connect("$dbhost", "$dbuser", "$dbpasswd") or die("here we die at connection");
@mysql_select_db("$dbname",$db) or die("here we die");
$prefix = "$table_prefix";
$query="SELECT * FROM phpbb_topics ORDER BY topic_id DESC LIMIT 0 , 5
$result= mysql_query($query) or die('Error: '.mysql_error());
while ($row = mysql_fetch_array ( $result )) {
$topicid = $row[topic_id];
$title = $row[topic_title];
$forumid = $row[forum_id];
$replies = $row[topic_replies];
echo "<a title=\"$title\" href=\"$url/viewtopic.php?t=$topicid&sid=$forumid\">$title</a> (<i>$replies</i><br>";
}
?>
when i run it i get
Parse error: parse error, unexpected T_STRING in /home/conehead/public_html/recent.php on line 22
then thinking it is the echo line i remove it, and i get unexpected $ on the last line.
Can anyone help, Thanx
😕