Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] pobranie danych aby wpisać je do pliku
artek
post
Post #1





Grupa: Zarejestrowani
Postów: 49
Pomógł: 0
Dołączył: 6.10.2015

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


Mam takie coś w pliku *.php, chcę teraz prócz wyświetlania wpisać to do pliku, bo ma wyglądać tak samo, jak się to wyświetla

  1. <?php
  2. for($j = 0 ; $j < $bin ; $j++) {
  3. $headerContainer = $newArticle->getHeaderContainer()[$j];
  4. $utmMediumHeader = $newArticle->getUtmMediumHeader()[$j];
  5. $utmMediumImage = $newArticle->getUtmMediumImage()[$j];
  6. $utmMediumButton = $newArticle->getUtmMediumButton()[$j];
  7. $utmSource = $newArticle->getUtmSource()[$j];
  8. $utmCampaign = $newArticle->getUtmCampaign()[$j];
  9. $link = $newArticle->getLink()[$j];
  10. $description = $newArticle->getDescription()[$j];
  11. $imageName = $newArticle->getImageName()[$j];
  12. ?>
  13. <tr>
  14. <td bgcolor="#ffffff" style="border-style: solid; border-width: 2px; border-color: #00b7D1;">
  15. <table leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" cellpadding="0" cellspacing="0" width="680" height="340">
  16. <tr>
  17. <td style="line-height: 0px; font-size: 0px;" height="340" width="290"><a href="<?php echo $link?>?utm_source=<?php echo $utmSource?>&utm_medium=<?php echo $utmMediumImage?>&utm_campaign=<?php echo $utmCampaign?>"><img src="img/upload_images/<?php echo $imageName?>" style="display: block;" border="0" height="340" width="290"></a></td>
  18. <td style="line-height: 0px; font-size: 0px;" height="0" width="10"><img src="img/spacer.gif" style="display: block;" border="0" height="0" width="10"></td>
  19. <td height="340" width="370">
  20. <table leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" cellpadding="0" cellspacing="0" width="370" height="340">
  21. <tr>
  22. <td style="line-height: 0px; font-size: 0px;" height="20" width="0"><img src="img/spacer.gif" style="display: block;" border="0" height="0" width="20"></td>
  23. </tr>
  24. <tr>
  25. <td height="70" width="370" style="font-size: 26px; font-family: Arial; color: #00b7D1; font-weight: bold;"><a style="font-size: 26px; font-family: Arial; color: #00b7D1; font-weight: bold; text-decoration: none" href="<?php echo $link?>?utm_source=<?php echo $utmSource?>&utm_medium=<?php echo $utmMediumHeader?>&utm_campaign=<?php echo $utmCampaign?>"><?php echo $headerContainer?></a></td>
  26. </tr>
  27. <tr>
  28. <td style="line-height: 0px; font-size: 0px;" height="10" width="0"><img src="img/spacer.gif" style="display: block;" border="0" height="10" width="0"></td>
  29. </tr>
  30. <tr>
  31. <td height="150" width="370" style="font-size: 16px; font-family: Arial; color: #000000; font-weight: normal;"><?php echo $description?></td>
  32. </tr>
  33. <tr>
  34. <td style="line-height: 0px; font-size: 0px;" height="90" width="370"><a href="<?php echo $link?>?utm_source=<?php echo $utmSource?>&utm_medium=<?php echo $utmMediumButton?>&utm_campaign=<?php echo $utmCampaign?>"><img src="img/button_glowny.jpg" style="display: block;" border="0" height="90" width="370"></a></td>
  35. </tr>
  36. </table>
  37. </td>
  38. <td style="line-height: 0px; font-size: 0px;" height="0" width="10"><img src="img/spacer.gif" style="display: block;" border="0" height="0" width="10">
  39. </td>
  40. </tr>
  41. </table>
  42. </td>
  43. </tr>
  44.  
  45. <?php
  46. include 'template/hr.html';
  47. }
  48. ?>


Ten post edytował artek 6.10.2015, 08:36:21
Go to the top of the page
+Quote Post

Posty w temacie


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: 17.10.2025 - 17:34