PDA

View Full Version : Which parsing function to use ?


cinq
05-26-2004, 01:35 AM
I am trying to pull the latest posts' titles in certain forums to be displayed on a nonvb page.

The query looks a tad like this


while($newposts = $DB_site->fetch_array($getposts))
{
$newpostid = $newposts['threadid'];
$newposttitle = parse_bbcode($newposts['title']);
echo "<li><a href=\"../forum/showthread.php?t=$newpostid\">$newposttitle</a></li>";
};



In the thread titles I am getting stuff like :


Informative site (&quot;new link&quot;)


How do i get rid of that formatting ?
Am i using the wrong parsing function ( parse_bbcode ) ?

Pls help :)

Xenon
05-27-2004, 12:40 PM
you don't have to use any parse function for titles.

iirc the titles are already stored in the correct parsed way into the db :)

cinq
05-27-2004, 01:52 PM
Thanks for the tip Stefan, i removed the parse_bbcode and i think its working fine now :)

Xenon
05-27-2004, 06:05 PM
:)

you're welcome.