
03-04-2006, 09:29 PM
|
 |
|
|
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by pyro.699
Im trying to parse BBCode...
Well, this is what I have so far.
PHP Code:
require_once(DIR . './includes/class_bbcode.php');
$parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
Then, somewhere in towards the botom of my script, i have this
PHP Code:
$pagetext = $parser->do_parse($db->fetch_array($text), $do_html, $do_smilies, $do_bbcode, $do_imgcode, $do_nl2br, $cachable);
I have the $db code working! i know for a fact that it works!
Now according to kerby's faq, for 3.5.0 Beta1 this is accurate, but im getting this error...
Thankyou verry much
-Cody Woolaver
|
$db->fetch_array() returns an array, not a string... you want to parse one of the elements in that array, not the array itself.
|