Results 1 to 3 of 3
  1. #1
    ABW Ambassador Doug247's Avatar
    Join Date
    January 18th, 2005
    Location
    DE USA
    Posts
    931
    I am starting to us PHP and MySQL with my site and I find it very useful. However when a datafeed has and 's or an & in a field it tends to hose up the the output. Ex. when an 's in the the feed it is displayed \'s and when an & is in the fee it tends to mess up URLs. What is the best way to deal with this problem.

    THanks,
    DOug
    Thanks,
    Doug

  2. #2
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    ÄúsTrálíĺ
    Posts
    1,372
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by Doug:
    when an 's in the the feed it is displayed \'s <HR></BLOCKQUOTE>
    stripslashes($var);

    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>and when an & is in the fee it tends to mess up URLs. <HR></BLOCKQUOTE>
    urlencode($var)

    I think a lot of these questions can be avoided by people having a bit of a looksie at http://www.php.net/manual/en/ref.strings.php

  3. #3
    ABW Ambassador Doug247's Avatar
    Join Date
    January 18th, 2005
    Location
    DE USA
    Posts
    931
    Excellent thanks for the help.
    Thanks,
    Doug

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. PHP question - include(file.php) with variables
    By teezone in forum Programming / Datafeeds / Tools
    Replies: 8
    Last Post: September 4th, 2009, 04:54 PM
  2. Can someone help with this PHP question.
    By Derrick Kinsey in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: March 22nd, 2007, 07:23 PM
  3. Php question
    By zimmy in forum Programming / Datafeeds / Tools
    Replies: 7
    Last Post: September 16th, 2006, 10:26 PM
  4. PHP Question
    By mopek in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: August 23rd, 2006, 04:51 PM
  5. PHP Question
    By Doug247 in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: March 31st, 2004, 10:20 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
  •