Autor Zpráva
macho
Profil *
zdravim

mam string: select * from cd where interpret=\'The Prodigy\';

a potrebujem zneho dostat prec tie lomitka, cize chcem dostat:

select * from cd where interpret='The Prodigy';

skusal som to takto:


$str=($_POST["query"]);
$pat="\\";
$repl="";
echo(ereg_replace($pat,$repl,$str));


v query sa samozrejme nachadza: select * from cd where interpret=\'The Prodigy\';

ako odital dostanem prec tie lomitka ? moze niekto helpnut ? diky
Charlie
Profil
Zkus funkci stripslashes().
Toto téma je uzamčeno. Odpověď nelze zaslat.

0