The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.

Create a free forum like this one.

How to add PHPBB3 Code..

View previous topic View next topic Go down

Solved How to add PHPBB3 Code..

Post by rago12 on July 3rd 2015, 11:59 pm

Hi all..
Its difficult for me , to understand how to add any codes and what type of code is it (CSS,script,html..)
That is the code , whose i want to put to my site , please try explanation in detail , what i need to do and where i need to put that code (Sorry for my English , im not very well in that language)
$connection = mysql_connect("localhost", "root", "pass");[size=12][/size]
$db = mysql_select_db("database", $connection);[size=12][/size]
$query = mysql_query("select * from phpbb_topics order by topic_time desc limit 0,5");[size=12][/size]
while($rows = mysql_fetch_array($query))[size=12][/size]
$qry = mysql_query("select * from phpbb_forums where forum_id='$rows[forum_id]'");[size=12][/size]
$rwz = mysql_fetch_array($qry);[size=12][/size]
$forum = $rwz[forum_name];[size=12][/size]
$catid = $rwz[cat_id];[size=12][/size]
$qry2 = mysql_query("select * from phpbb_categories where cat_id='$catid'");[size=12][/size]
$cat = $rwz2[cat_title];[size=12][/size]
echo "[size=12][/size]
<font face="Verdana" color="#006699" size="2"><a href="forum/viewtopic.php?t=".$rows[topic_id]."">$rows[topic_title]</a></front> ($rows[topic_replies])[size=12][/size]

That is a code for "Last Topics"...
Thank you beforehand.

New Member

Male Posts : 5
Reputation : 1
Language : Bulgarian

Back to top Go down

Solved Re: How to add PHPBB3 Code..

Post by APE on July 10th 2015, 12:18 am

@rago12 is this now solved ?


Male Posts : 9242
Reputation : 821
Language : fluent in dork / mumbojumbo & English haha

Back to top Go down

View previous topic View next topic Back to top

Permissions in this forum:
You cannot reply to topics in this forum