Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [html][php] Zmiana kodu z HTML na PHP
Majerek
post 27.02.2008, 16:43:51
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 27.02.2008

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


Potrzebna mi pomoc sad.gif Nie znam narazie zbytnio PHP a pilnie mi potrzeba przerobic dwa kody sad.gif Z HTMLa na PHP.

Pierwszy Kod to taki żeby na stronie było widać kontakt gadu gadu, jak na przykład na tej stronce http://www.pg2.malkinia.com
  1. <p align="center">Admin <a href="gg:1659945">
  2. <img src="http://www.gadu-gadu.pl/users/status.asp?id=1659945&styl=1" border="0"></a></p>


A tu jest drugi Kod który miał by wyświetlić taką mini tabele meczu ostatniego i bierzącego

  1.  
  2. <table id="table1" bgcolor="#6ac428" border="0" width="165" height="14">
  3. <tr>
  4. <td width="159" height="10">
  5. <p align="center"><b><font face="Verdana" size="2">UKS Małkinia</font></b></td>
  6. </tr>
  7. <p align="left"><br>
  8. <font color="red">&nbsp;<i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  9. 26.01.2008 r. <br>
  10. </i></font><i><br>
  11. </i><b>UKS Dwójka - </b>UKS Targówek<b> </b></p>
  12. <p align="left"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  13. 18:31 (12:11)</b><br>
  14. ----------------------------------- <br>
  15. <i><font color="#FF0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  16. 02.02.2008r.</font><br>
  17. <br>
  18. </i>MKS Karczew - <b>UKS Dwójka</b></p>
  19. <p align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>&nbsp;21:23
  20. (10:12)</b><br>
  21. <font color="black">-----------------------------------</font></p>
  22. <p align="left"><font color="#FF0000"><b>&nbsp;&nbsp;&nbsp; KONIEC I RUNDY !</b></font></p>
  23.  
  24. </body>


Prosze niech mi ktoś pomoże sad.gif sad.gif ohmy.gif

Ten post edytował Majerek 27.02.2008, 16:46:41
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 7)
l0ud
post 27.02.2008, 16:46:18
Post #2





Grupa: Zarejestrowani
Postów: 1 387
Pomógł: 273
Dołączył: 18.02.2008

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


Na początek polecam w ogóle dowiedzieć się, co to jest php. Php jest językiem wykonywanym po stronie serwera, i najczęściej wynikiem działania jego kodu jest... html.


--------------------
XMPP: l0ud@chrome.pl
Go to the top of the page
+Quote Post
parzygnat
post 27.02.2008, 16:58:57
Post #3





Grupa: Zarejestrowani
Postów: 155
Pomógł: 6
Dołączył: 31.12.2007
Skąd: Poznań

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


No i na poczatek zapoznaj sie tez z funkcja "print" smile.gif
Dla przykładu podam Ci jakis kod php

  1. <?php
  2.  print "Hello word!";
  3. ?>
Go to the top of the page
+Quote Post
Majerek
post 27.02.2008, 17:00:54
Post #4





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 27.02.2008

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


mam strone w PHP Fusion. I żeby dodać jakiś nowy panel(blok) to trzeba właśnie przez te głupie skrypty PHP. blinksmiley.gif sadsmiley02.gif
Go to the top of the page
+Quote Post
parzygnat
post 27.02.2008, 17:30:48
Post #5





Grupa: Zarejestrowani
Postów: 155
Pomógł: 6
Dołączył: 31.12.2007
Skąd: Poznań

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


Pierwszy kod dodaj tak:
  1. <?php
  2.  print "<p align=\"center\">Admin <a href=\"gg:1659945\">";
  3.  print "<img src=\"http://www.gadu-gadu.pl/users/status.asp?id=1659945&styl=1\" border=\"0\"></a></p>";
  4. ?>


A drugi na przykladznie tego mam nadzieje ze wymyslisz.
Go to the top of the page
+Quote Post
Majerek
post 27.02.2008, 17:46:21
Post #6





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 27.02.2008

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


Dzięki wielkie smile.gif smile.gif

A łatwe to nie będzie ale obiecuje że się postaram i będe próbował smile.gif smile.gif
Go to the top of the page
+Quote Post
l0ud
post 27.02.2008, 17:50:55
Post #7





Grupa: Zarejestrowani
Postów: 1 387
Pomógł: 273
Dołączył: 18.02.2008

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


Ostatecznie nie trzeba dzielić tego na oddzielne komendy, można to zrobić w jednej. I lepiej stosować echo a nie print, np.

  1. <?php
  2. echo '<table id="table1" bgcolor="#6ac428" border="0" width="15" height="14">
  3. <tr>
  4. <td width="159" height="10">
  5. <p align="center"><b><font face="Verdana" size="2">UKS Małkinia</font></b></td>
  6. </tr>
  7. </table>
  8. <p align="left"><br>
  9. <font color="red">&nbsp;<i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  10. 26.01.2008 r. <br>
  11. </i></font><i><br>
  12. </i><b>UKS Dwójka - </b>UKS Targówek<b> </b></p>
  13. <p align="left"><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  14. 18:31 (12:11)</b><br>
  15. ----------------------------------- <br>
  16. <i><font color="#FF0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  17. 02.02.2008r.</font><br>
  18. <br>
  19. </i>MKS Karczew - <b>UKS Dwójka</b></p>
  20. <p align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>&nbsp;21:23
  21. (10:12)</b><br>
  22. <font color="black">-----------------------------------</font></p>
  23. <p align="left"><font color="#FF0000"><b>&nbsp;&nbsp;&nbsp; KONIEC I RUNDY !</b></font></p>';
  24. ?>


--------------------
XMPP: l0ud@chrome.pl
Go to the top of the page
+Quote Post
Majerek
post 27.02.2008, 17:59:26
Post #8





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 27.02.2008

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


Panowie jesteście wielcy exclamation.gif smile.gif

Bardzo wam dziękuje smile.gif
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 - 16:55