Posting here becuase no1 looks at coding section, which sucks.
Whats wrong with this?
I can't figure it out ;[PHP Code:<?
function BBCODE($bbcode)
{
$bbc_a=array(
",
"" target=_blank>",
"",
" <fieldset style='width: 450'><div style='overflow:auto; width:450px'><table width='100%' cellpadding='0' cellspacing='0' style='border-bottom:1px dashed #000000;'><tr><td><b> <fieldset style='width: 450'><div style='overflow:auto; width:450px'><table width='100%' cellpadding='0' cellspacing='0' style='border-bottom:1px dashed #000000;'><tr><td><b>CODE:</b></td></tr></table></b></td></tr></table>",
"</div></fieldset>",
"<img src="",
"" border="0">",
"<i>",
"</i>",
"[strike]",
"[/strike]",
"<b>",
"</b>",
"<u>",
"</u>"
);
$bbc_b=array(
"<a href='",
"'>Link</a>",
"<strong> <fieldset style='width: 450'><div style='overflow:auto; width:450px'><table width='100%' cellpadding='0' cellspacing='0' style='border-bottom:1px dashed #000000;'><tr><td><b>CODE:</b></td></tr></table></strong><div style=\"margin:0px 5px;padding:5px;border:1px dashed #000000;width:90%; overflow:auto; width:90%\"></em>",
"</em></div>",
"<img src='",
"'>",
"<i>",
"</i>",
"<strike>",
"</strike>",
"<b>",
"</b>",
"<u>",
"</u>"
);
$bbc_num=count($bbc_a);
$loop=0;
while($loop<$bbc_num)
{
$bbcode=str_replace($bbc_a[$loop], $bbc_b[$loop], $bbcode);
$loop++;
}
return $bbcode;
}
?>
My error is..
Line 6:Code:Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/****/public_html/users/bbcode.php on line 6
+rep for all help.PHP Code:"" target=_blank>",





Reply With Quote


