Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP] stripslashes problem ze znaczkiem
tomigram
post 16.07.2008, 18:11:12
Post #1





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 26.06.2008

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


Witam.
W bazie wystepuja dwa wpisy:

Shen'dralar
albo
Shen dralar

pod zmienna $realm wyswietlam:

$realm2=stripslashes($realm);

<input type=text value='$realm2' ...>

-wynikiem jest Shen (niepoprawnie)
albo
-wynikiem jest Shen dralar (poprawnie)

gdy dam
<input type=text value=$realm2 ...>
-wynikiem jest Shen'dralar (poprawnie)
albo
-wynikiem jest Shen (niepoprawnie)

Ten post edytował tomigram 16.07.2008, 18:35:16
Go to the top of the page
+Quote Post
barthpl
post 16.07.2008, 18:41:57
Post #2





Grupa: Zarejestrowani
Postów: 142
Pomógł: 35
Dołączył: 5.12.2006
Skąd: Wrocław

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


Problem powinien się rozwiązać jak dasz:
  1. <input type=text value="$realm2">


--------------------
Jeżeli pomogłem rozwiązać Twój problem, kliknij pomógł.
Go to the top of the page
+Quote Post
tomigram
post 16.07.2008, 22:14:13
Post #3





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 26.06.2008

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


$realm2=stripslashes($realm);

echo'<td class=dane><input value=" '.$realm2.' " type=text name=lvl></td>';

zle buduje stringi..
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 00:51