PDA

View Full Version : highlight string



RyanS
23-09-2006, 09:01 PM
"<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\" id=\"table1\" bgcolor=\"#E3E3E3\"><tr><td><font face=\"verdana\" size=\"1\"><b>Code:</b><br>", "</font></td></tr></table>",
"<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\" id=\"table1\" bgcolor=\"#E3E3E3\"><tr><td><font face=\"verdana\" size=\"1\"><b>Quote:</b><br>", "</font></td></tr></table>",
"<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\" id=\"table1\" bgcolor=\"#E3E3E3\"><tr><td><font face=\"verdana\" size=\"1\"><b>PHP Code:</b><br>highlight_string(", ")</font></td></tr></table>",
'">');

How do you do highlight string, i tried at the last thing if you can see, BTW ", " is the message

Luckyrare
23-09-2006, 10:03 PM
<?php highlight_string("PHP, HTML HERE"); ?>

RyanS
23-09-2006, 11:09 PM
yeah now if i use this



"highlight_string("<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\" id=\"table1\" bgcolor=\"#E3E3E3\"><tr><td><font face=\"verdana\" size=\"1\"><b>PHP Code:</b><br>", "</font></td></tr></table>");",


i get


Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/stanyer/public_html/content/ubb.php on line 28

Colin-Roberts
23-09-2006, 11:30 PM
you added ", to the end of it?

highlight_string("<table border="1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\" id=\"table1\" bgcolor=\"#E3E3E3\"><tr><td><font face=\"verdana\" size=\"1\"><b>PHP Code:</b><br>", "</font></td></tr></table>");

RyanS
24-09-2006, 12:02 AM
No colin im using BBCODE ", defines the end of the replacement..

RyanS
24-09-2006, 12:05 PM
Still need help ;[

Want to hide these adverts? Register an account for free!