Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [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 sad.gif
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
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 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
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 08:18