Search Result

Collapse
2 results in 0.0036 seconds.
Keywords
Members
Tags
backslash
  •  

  • systomx
    started a topic Reverse Solidus (Backslash) Necessary?

    Reverse Solidus (Backslash) Necessary?

    I am using strict HTML:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    in my website. validator.w3c.o rg gives me lots of errors within my javascript code, such as:
    '<B>a</B>...Line 24, Column 40: end tag for element "B" which is not open'

    The validator does not recognize the start tag <B>, just the end tag </B>....
    See more | Go to post

  • When should special characers be escaped inside strings?

    Hi all. I picked up the following code example from the php manual:
    Code:
    $link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password')
        OR die(mysql_error());
    
    // Query
    $query = sprintf("SELECT * FROM users WHERE user='%s' AND password='%s'",
                mysql_real_escape_string($user),
                mysql_real_escape_string($password));
    My question is, shouldn't we be escaping...
    See more | Go to post
    Last edited by Atli; May 18 '09, 07:07 PM. Reason: Moved to the PHP forum, and the title cleaned up a bit.
Working...