Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z id w scrypcie
dragonballpj
post
Post #1





Grupa: Zarejestrowani
Postów: 45
Pomógł: 0
Dołączył: 11.06.2002

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


mam scrypta:
Kod
<?

$lines=file("download.dat");

$stan=0;

for($n=0; $n<count($lines); $n++)

{

$str=explode(",",$lines[$n]);

if(chop($str[1])=="$id")

  {

   settype($str[0],"integer");

    $str[0]++;

   $lines[$n]=implode(",",$str);

   $stan=1;

}

}



  $plik=fopen("download.dat","w");

  flock($plik,2);

  if($stan==0) fputs($plik,"1,$idn");

  for($n=0; $n<count($lines); $n++) fputs($plik,chop($lines[$n])."n");

  flock($plik,3);

  fclose($plik);

  header("Location: $id");

?>
i jak go wklejam w plika index.php to jak jest index.php?id=11 to zostaje z tego tylko 11 ale nie że w kodzie ale kiedy klikne to mnie przenosi do 11 bez czesci index.php?id= ni wm co jest pomocy!!!!!
Go to the top of the page
+Quote Post

Posty w temacie
- dragonballpj   problem z id w scrypcie   6.09.2002, 15:37:29
- - Seth   Re: problem z id w scrypcie   6.09.2002, 16:37:09
- - Mac   Re: problem z id w scrypcie   6.09.2002, 18:02:08
- - Seth   Re: problem z id w scrypcie   6.09.2002, 18:25:27
- - Mac   Re: problem z id w scrypcie   6.09.2002, 18:27:37
- - dragonballpj   problem jak zapisuje w pliku to wygląda to tak ...   6.09.2002, 21:04:25


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: 21.12.2025 - 22:10