Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> header
unnament
post
Post #1





Grupa: Zarejestrowani
Postów: 77
Pomógł: 1
Dołączył: 4.06.2006

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


Witam,
Wyskakuje mi taki blad:
Cytat
Warning: Cannot modify header information - headers already sent by (output started at /home/muonline/ftp/szablony/index.php:7) in /home/muonline/ftp/szablony/contents/download.php on line 17


zawartosc pliku download.php:

  1. <?php 
  2. $id3 = $_GET['id3'];
  3.  
  4. $polaczenie = mysql_connect("*****","*****","*****"); 
  5. mysql_select_db("******",$polaczenie);
  6.  
  7. // query pobierające dane z bazy
  8. $query = "SELECT * FROM szablony_download WHERE ID=$id3";
  9. $result = mysql_query($query);
  10.  
  11. $query_plus = "UPDATE szablony_download SET ilosc_sciagniec=ilosc_sciagniec+1 WHERE ID='$id3'";
  12. $result_plus = mysql_query($query_plus);
  13.  
  14. while($row = mysql_fetch_array($result))
  15. {
  16. header("Location:$row[9]");
  17. }
  18.  
  19. mysql_close($polaczenie);
  20. ?>


Czytalem o tym bledzie, ale nic mi nie pomoglo..Czy ktos zna na to sposob?
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: 25.08.2025 - 01:31