Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php/mysql] shashe... problem
bastek8989
post
Post #1





Grupa: Zarejestrowani
Postów: 205
Pomógł: 1
Dołączył: 11.09.2006

Ostrzeżenie: (0%)
-----


Witam

Mam problem odnosnie slashy...

Wstawialy mi sie 3 przed cudzyslowiem... usunolem je funkcja stripslashes() 2 zniknely 1 zostal - i tu problem niewiem jak tego ostatniego sie pozbyc..

pozdrawiam
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
wipo
post
Post #2





Grupa: Zarejestrowani
Postów: 856
Pomógł: 19
Dołączył: 30.08.2005
Skąd: 100lica

Ostrzeżenie: (0%)
-----


htmlspecialchars()
Go to the top of the page
+Quote Post
bastek8989
post
Post #3





Grupa: Zarejestrowani
Postów: 205
Pomógł: 1
Dołączył: 11.09.2006

Ostrzeżenie: (0%)
-----


ostatecznie uzylem:

  1. <?php
  2. function stripslashes2($string) {
  3.  $string = str_replace(""", """, $string);
  4.  $string = str_replace("'", "'", $string);
  5.  $string = str_replace("", "", $string);
  6.  return $string;
  7.  }
  8. ?>


Ten post edytował bastek8989 14.01.2007, 19:17:14
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.08.2025 - 09:22