Skocz do zawartości
Hosting webh.pl - 20%

Kod PHP w szablonie.

Rekomendowane odpowiedzi

Opublikowano

Cześć i czołem!

Mam problem z dodaniem kodu php do szablonu. Stosuję tagi <php></php>, lecz sypie błędami.

Warning: Cannot modify header information - headers already sent by (output started at /home/milekmzh/public_html/e-intermania.pl/cache/skin_cache/cacheid_8/skin_global.php:205) in /home/milekmzh/public_html/e-intermania.pl/admin/sources/classes/output/formats/html/htmlOutput.php on line 109

Warning: Cannot modify header information - headers already sent by (output started at /home/milekmzh/public_html/e-intermania.pl/cache/skin_cache/cacheid_8/skin_global.php:205) in /home/milekmzh/public_html/e-intermania.pl/admin/sources/classes/output/formats/html/htmlOutput.php on line 120

Warning: Cannot modify header information - headers already sent by (output started at /home/milekmzh/public_html/e-intermania.pl/cache/skin_cache/cacheid_8/skin_global.php:205) in /home/milekmzh/public_html/e-intermania.pl/admin/sources/classes/output/formats/html/htmlOutput.php on line 129

Warning: Cannot modify header information - headers already sent by (output started at /home/milekmzh/public_html/e-intermania.pl/cache/skin_cache/cacheid_8/skin_global.php:205) in /home/milekmzh/public_html/e-intermania.pl/admin/sources/classes/output/formats/html/htmlOutput.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/milekmzh/public_html/e-intermania.pl/cache/skin_cache/cacheid_8/skin_global.php:205) in /home/milekmzh/public_html/e-intermania.pl/admin/sources/classes/output/formats/html/htmlOutput.php on line 134

Gdzieś na forum wyczytałem, że jest to wina iż stosuję "echo".

Bardzo proszę o pomoc w rozwiązaniu mojego problemu lub naprowadzeniu mnie na cel naprawczy.

Opublikowano
  • Autor

echo "<div id=\"\" class=\"category_block block_wrap\" style=\"margin: 0px 15px;\">
<h3 id=\"category_288\" class=\"maintitle\">Nasze serwery</h3>
<div class=\"table_wrap\"><div class=\"table_wrap\"><table class=\"ipb_table\" summary=\"'\" cellspacing=\"0\">
<tbody>
<tr class=\"header\"><center>

							<th scope=\"col\" class=\"col_c_icon\">Nazwa</th>
							<th scope=\"col\" class=\"col_c_icon\">Adres IP</th>
							<th scope=\"col\" class=\"col_c_icon\">Status</th>
							<th scope=\"col\" class=\"col_c_icon\">Sloty</th>
							<th scope=\"col\" class=\"col_c_icon\">Typ</th>
							<th scope=\"col\" class=\"col_c_icon\">Rodzaj</th>
							<th scope=\"col\" class=\"col_c_icon\">Sponsor</th>

</tr></center>";
   while($r = mysql_fetch_array($wynik)) {
       echo "<tr class=\"row2\"><td align=\"center\">".$r['name']."</td>";
       echo "<td class=\"altrow stats\"><p align=\"center\">".$r['ip']."</td>";
       echo "<td class=\"altrow stats\"><p align=\"center\"><img src=\"http://e-intermania.pl/status/status.php?server=".$r['ip']."\ border=\"0\"></p></td>";
       echo "<td align=\"center\">".$r['sloty']."</td>";
	echo "<td align=\"center\">".$ser['typ']."</td>";
	echo "<td align=\"center\">".$ser['rodzaj']."</td>";
	echo "<td align=\"center\">".$ser['sponsor']."</td>";
       echo "</tr>";
   }
   echo "</tbody></table></div></div></div>";
}

Wyższej części kodu nie podam z przyczyn oczywistych.

Kawałek mojego kodu wygląda tak, nadal nie mam pojęcia jak naprawić problem.

Edytowane przez czakoszek

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Szukaj

Szukaj

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.