\'s

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gumphfy
Forum Newbie
Posts: 23
Joined: Fri Jan 06, 2006 10:18 am

\'s

Post by gumphfy »

I often echo variables from URL's, but when it comes to " 's ", it troubles me. I've been ignoring this issue for some while now, but it's still bugging me. how can I remove the " \" in front of the " 's " ?

I.e. if my url is : index.php?tid=Phill%27s%20Report

It would show up as:
Phill\'s Report
which is pretty annoying in the long run...
In my DB I have replaces the " ' " with:

Code: Select all

"
Can I do the same in my code?
something like:

Code: Select all

"'" => """;
no?

Thanks in advance!
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

gumphfy
Forum Newbie
Posts: 23
Joined: Fri Jan 06, 2006 10:18 am

Post by gumphfy »

Great, thanks!

I really should read the whole manual, so I knew what things were called, that way I wouldn't have to bother all of you here. I know...Goggle is my friend...
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

I tried to goggle.com. It told me that my Fedora 4 Linux OS has 68 infected registry entries, 14 infected files, 3 infected folders (love to know how that works), and 2 infected processes.

Hmm, I better get that fixed huh. Maybe if I run that .exe they try to get me to download in wine it will solve all of my problems. Including how to get more traffic to my web site.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

agtlewis wrote:I tried to goggle.com. It told me that my Fedora 4 Linux OS has 68 infected registry entries, 14 infected files, 3 infected folders (love to know how that works), and 2 infected processes.

Hmm, I better get that fixed huh. Maybe if I run that .exe they try to get me to download in wine it will solve all of my problems. Including how to get more traffic to my web site.
Eh?
Post Reply