Results 1 to 2 of 2

Thread: special characters in PHP script...

Threaded View

  1. #1
    Join Date
    Jan 2003
    Location
    DE
    Posts
    27

    Question special characters in PHP script...

    hi everybody,

    has any of you an idea, how to print double backslashes in a script?

    the idea is to generate a mysql query that looks for some windows unc path (on a db...).
    so i need to look for a string like \\serverunc\path1\path2 and so on within the query.

    now when i hand it a \\ it should recognize it as a single backslash, right!?
    so \\\\ should generate a simple \\, shouldn't it?
    but that won't work for some reason.
    i know that there is an escaping difference between the utf-sets but when i call a query, i need to use single quotes ('').

    so what can i do?


    EDIT:
    identified the question as mysql 'LIKE' operator problem...
    the LIKE statement seems to not accept such syntax. i'll be looking for the correct syntax.
    Last edited by MuSQLe; 06-30-2004 at 05:23 AM.

Posting Permissions

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