Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [php] Jak to zmienic aby wyświetlało ""
Sadu2
post
Post #1





Grupa: Zarejestrowani
Postów: 229
Pomógł: 13
Dołączył: 31.05.2007

Ostrzeżenie: (10%)
X----


Witam,

  1. <?php
  2. $img_pmt="width=".$config["es_th_width"]." height=".$config["es_th_width"]."";
  3. ?>


I teraz otrzymuje:

  1. <img width=90 height=90 border=0 ...


I jak mam to przekształcić aby otrzymać:

  1. <img width="90" height="90" border="0" src=


Kombinowałem dodając " czy ' w różne miejsca ale jakoś mi to nie wychodzi (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
Go to the top of the page
+Quote Post
1010
post
Post #2





Grupa: Zarejestrowani
Postów: 749
Pomógł: 37
Dołączył: 3.10.2006

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


  1. <?php
  2. $img_pmt='width="'.$config['es_th_width'].'" height="'.$config['es_th_width']'."';
  3. ?>
Go to the top of the page
+Quote Post
Sadu2
post
Post #3





Grupa: Zarejestrowani
Postów: 229
Pomógł: 13
Dołączył: 31.05.2007

Ostrzeżenie: (10%)
X----


Wywala mi błąd wtedy:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING

EDIT:

Dzięki działa (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Kropka za es_th_width była źle postawiona.

Ten post edytował Sadu2 26.01.2008, 22:52:04
Go to the top of the page
+Quote Post
1010
post
Post #4





Grupa: Zarejestrowani
Postów: 749
Pomógł: 37
Dołączył: 3.10.2006

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


  1. <?
  2. $img_pmt='width="'.$config['es_th_width'].'" height="'.$config['es_th_width'].'"';
  3. ?>


wybacz... zrobiłem literówkę...

edit: teraz działa... sprawdzałem...

Ten post edytował 1010 26.01.2008, 22:52:46
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: 24.08.2025 - 19:00