i have problem with slashes and quotes!...
hi,i get the word like this:
if the word is: art"ssef
i get it like this:
art"/ssef
---
sometimes get it like that too:
art
and the "ssef is removed!....can some ne help me please ?
i have problem with slashes and quotes!
Moderator: General Moderators
Re: i have problem with slashes and quotes!
Try this, this should totally work, please reply if it does.
Code: Select all
<?php
echo ('art"seff');
?>Re: i have problem with slashes and quotes!
no no man, i know thats work....but i mean php & mysql ... sorry i forgot to say thant 
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: i have problem with slashes and quotes!
When you display data from a database you can use stripslashes() to remove any slashes used to escape certain characters (like " or ') and then you should use htmlentities() to convert the characters (" and ' among others) to html-safe characters.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Re: i have problem with slashes and quotes!
Well yes you didn't mention about "php & mysql" that's why I answered it that way.