Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]Problem z Sesja
Lethys
post
Post #1





Grupa: Zarejestrowani
Postów: 642
Pomógł: 2
Dołączył: 9.03.2006

Ostrzeżenie: (30%)
XX---


Mam problem z sesjami

Tutaj login.php :


  1. <?php include("config.php"); ?>
  2. <?php
  3. if (!$email || !$pass) {
  4. print "Please fill out all fields.";
  5. }
  6. $logres = mysql_num_rows(mysql_query("select * from players where email='$email' and pass='$pass'"));
  7. if ($logres <= 0) {
  8. print "Login failed. If you have not already, please signup. Otherwise, check your
     spelling and login again."
    ;
  9. } else {
  10. $names = mysql_num_rows(mysql_query("select * from players where user='$name' "));
  11.  
  12. session_register("email");
  13. print " <br>Welcome back. Please click <a href=http://filmik.net>here</a> to continue.., nazwa twojej postaci to <b><u>$name</b></u>";
  14.  
  15.  
  16.  
  17. }
  18.  
  19. ?>


Kiedy zaloguje sie wyskakuje blad :

Cytat
Warning: session_register(): Cannot send session cache limiter - headers already sent (output started at /var/www/vhosts/lethys.xxl-web.pl/httpdocs/pirates/config.php:2) in /var/www/vhosts/lethys.xxl-web.pl/httpdocs/pirates/login.php on line 14

Welcome back. Please click here to continue.., nazwa twojej postaci to


I jak zrobic zeby pokazywalo imie postaci bo mi sie to nie udalo tongue.gif


--------------------
filmy podobne do - wyszukiwarka podobnych filmów
motywacja do działania - Bądź Lepszy
Go to the top of the page
+Quote Post

Posty w temacie
- [Lethys]   [php]Problem z Sesja   14.10.2006, 09:49:37
- - sticker   to pewnie znaczy tyle że coś Ci si...   14.10.2006, 10:41:06


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 Aktualny czas: 21.08.2025 - 03:39