Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Problem z cudzysłowiami
djkrss
post
Post #1





Grupa: Zarejestrowani
Postów: 23
Pomógł: 0
Dołączył: 24.02.2008

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


Więc chodzi o to że nie mogę poradzić sobie z cudzysłowami w tej linijce...
Kod
echo "<tr><td align='center'><a href='".BASEDIR."profile.php?lookup=".$user_id."' class='side'>".colorize_user($dane['user_name'])."</a></td><td align='center'>";
Go to the top of the page
+Quote Post
nowotny
post
Post #2





Grupa: Zarejestrowani
Postów: 875
Pomógł: 122
Dołączył: 2.02.2008

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


Ale z czym konkretnie...? :/

Zamień sobie te cudzysłowy... podwójne na pojedyncze i odwrotnie... po co katować parser...
Go to the top of the page
+Quote Post
webdice
post
Post #3


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




  1. <?php
  2. echo '<tr><td align="center"><a href="' . BASEDIR . 'profile.php?lookup=' . $user_id . '" class="side">' . colorize_user($dane['user_name']) . '</a></td><td align="center">';
  3. ?>
Go to the top of the page
+Quote Post
djkrss
post
Post #4





Grupa: Zarejestrowani
Postów: 23
Pomógł: 0
Dołączył: 24.02.2008

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


webdicepl, nie działa ;/
Go to the top of the page
+Quote Post
webdice
post
Post #5


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




Co nie działa? Jaki się błąd pokazuje?
Go to the top of the page
+Quote Post
djkrss
post
Post #6





Grupa: Zarejestrowani
Postów: 23
Pomógł: 0
Dołączył: 24.02.2008

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


Odnośnik jest tylko do /profile.php?lookup= - bez id...
Go to the top of the page
+Quote Post
webdice
post
Post #7


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




Tego już Ci nie powiem bo nie widzę reszty kodu. Sprawdź czy przypisujesz jakąś wartość do tej zmiennej albo pokaż więcej kodu.
Go to the top of the page
+Quote Post
djkrss
post
Post #8





Grupa: Zarejestrowani
Postów: 23
Pomógł: 0
Dołączył: 24.02.2008

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


Wszystko zapisane jest w tym co widzisz wyżej (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
webdice
post
Post #9


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




Cytat(djkrss @ 3.03.2008, 20:19:29 ) *
Wszystko zapisane jest w tym co widzisz wyżej (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)


I może mi powiesz że w kodzie który podałeś jest gdzieś deklaracja zmiennej user_id?

Ten post edytował webdicepl 3.03.2008, 20:31:17
Go to the top of the page
+Quote Post
djkrss
post
Post #10





Grupa: Zarejestrowani
Postów: 23
Pomógł: 0
Dołączył: 24.02.2008

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


Sorrka, mala pomyłka zaszła... Miałem problem z tym kodem:
Kod
echo "<tr><td align='center'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".colorize_user($dane['user_name'])."</a></td><td align='center'>";
Go to the top of the page
+Quote Post
-Wieviór-
post
Post #11





Goście







  1. <?php
  2. echo '<tr><td align="center"><a href="'.BASEDIR.'profile.php?lookup='.$data['user_id'].'" class="side">'.colorize_user($dane['user_name']).'</a></td><td align="center">';
  3. ?>


Ten post edytował Wieviór 3.03.2008, 21:59:49
Go to the top of the page
+Quote Post
djkrss
post
Post #12





Grupa: Zarejestrowani
Postów: 23
Pomógł: 0
Dołączył: 24.02.2008

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


Wciąż jest jakiś błąd, bo nie wyświetla się jak poprzednio tzn Odnośnik jest tylko do /profile.php?lookup= - bez id...
Go to the top of the page
+Quote Post
webdice
post
Post #13


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




Cytat(djkrss @ 3.03.2008, 22:15:54 ) *
Wciąż jest jakiś błąd, bo nie wyświetla się jak poprzednio tzn Odnośnik jest tylko do /profile.php?lookup= - bez id...


Ile razy będę Ci musiał tłumaczyć, że nie jesteśmy wróżkami i nie wiemy gdzie i jak deklarujesz tą zmienna?
Go to the top of the page
+Quote Post
envp
post
Post #14





Grupa: Zarejestrowani
Postów: 359
Pomógł: 1
Dołączył: 16.04.2006
Skąd: Łódź

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


Może lepiej powiedz jakie zmienne masz zadeklarowane i co chcesz osiagnąć.
Go to the top of the page
+Quote Post
djkrss
post
Post #15





Grupa: Zarejestrowani
Postów: 23
Pomógł: 0
Dołączył: 24.02.2008

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


Cytat
echo '<tr><td align="center"><a href="'.BASEDIR.'profile.php?lookup='.$data['user_id'].'" class="side">'.colorize_user($dane['user_name']).'</a></td><td align="center">';


A powinno być:
Cytat
echo '<tr><td align="center"><a href="'.BASEDIR.'profile.php?lookup='.$data['user_id'].'" class="side">'.colorize_user($dane['user_name']).'</a></td><td align="center">';
Go to the top of the page
+Quote Post
.radex
post
Post #16





Grupa: Zarejestrowani
Postów: 1 657
Pomógł: 125
Dołączył: 29.04.2006

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


sory, ale albo jestem ślepy, albo to jest jedno i to samo. (IMG:http://forum.php.pl/style_emoticons/default/wacko.gif)
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: 27.09.2025 - 00:29