Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2006
    Posts
    450
    Tokens
    0

    Default highlight string

    PHP Code:
                    "<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

  2. #2
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    PHP Code:
    <?php highlight_string("PHP, HTML HERE"); ?>

  3. #3
    Join Date
    Sep 2006
    Posts
    450
    Tokens
    0

    Default

    yeah now if i use this

    PHP Code:
    "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

  4. #4
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    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>");

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  5. #5
    Join Date
    Sep 2006
    Posts
    450
    Tokens
    0

    Default

    No colin im using BBCODE ", defines the end of the replacement..

  6. #6
    Join Date
    Sep 2006
    Posts
    450
    Tokens
    0

    Default

    Still need help ;[

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •