replacing single quote

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kencana
    New Member
    • Nov 2006
    • 26

    replacing single quote

    Hi all,

    Any idea on how to replace a single quote into other characters?\
    Thank you

    Regards,
    Kencana
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    I don't understand your question. Do you want to replace a single quote by, let's say, a question mark? I don't think that is what you mean.

    So: what do you mean?

    Ronald :cool:

    Comment

    • kencana
      New Member
      • Nov 2006
      • 26

      #3
      Hi Ronald,

      Sorry for the late reply.
      What i mean is, if the words contains a single quote.
      by the way the words will be used for retrieving data from the
      database.
      therefore, if there is a single quote in it, it will return an error message.
      by the way, i have found a way to solve it by using the following code:
      <?php
      $keywords=str_r eplace(" ' ", " ' ' ", $words);
      ?>

      by the way i have another question about passing parameter through the url.
      Lets say, i have a web page consists of 2 frame section.
      i need to get the querystring value from the main url to the
      frame 1. this value will be used as a keywords for retrieving data from the data base. note that, inside the frame is another php file (it is not the same file name as main page file).
      So I was thinking how to pass the parameter from the main url to the frame.
      sorry for my bad explanation and english.
      Please don't mind.

      Regards,
      Kencana

      Comment

      Working...