PHP Error Code

  Joshv1288 23:44 14 Jul 2008
Locked

Im Getting Error codes from the following lines to the end of the code can someone help me out?

'/[quote](.+?)[/quote]/is',

'/[color=(.+?)](.+?)[/color]/i');



// the array with the data that replaces the first arrays data

$code = array(' b>$1 /b>',

' i>$1 /i>',

' u>$1 /u>',

' a href="$1" class="link" target="_blank">$2 /a>',

' img src="images/smilies/smile.gif" alt=":)" />',

' img src="images/smilies/wink.gif" alt=";)" />',

' img src="images/smilies/laugh.gif" alt=":D" />',

' img src="images/smilies/tounge.gif" alt=":p" />',

' img src="images/smilies/worried.gif" alt=":'(" />',

' br /> div class="quote">$1 /div> br />',

' span style="color: $1;">$2 /span>');



// just to be sure... strip all slashes

$text = stripslashes($text);

// the main part of the bbcode system... replace all data using the two arrays and the given text

$text = preg_replace($suche, $code, $text);

// make a br out of /n

$text = nl2br($text);

// return the text

return $text;

}





}

?>

  Joshv1288 23:46 14 Jul 2008

sry forgot the first error message

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/h3swat/public_html/Forum/core/_forum.php on line 567

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

OnePlus 5 review

Alice Saey's mesmerising animation for Dutch singer Mark Lotterman

iPad Pro 10.5in (2017) review

Comment booster votre iPhone ?