Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Skrypt logowania nie chodzi...
giciarz_1200`
post
Post #1





Grupa: Zarejestrowani
Postów: 33
Pomógł: 0
Dołączył: 3.08.2005

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


No więc mam skrypt który loguje sie i wogole(DZIAŁĄ). Ale gdy wincludowałem skrypt na moją stronę i zalogowałem się wyskakuje blad 404. Co zrobić??

PS skrypt jest oparty na MySQL-u.

Pozdro 4all
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
giciarz_1200`
post
Post #2





Grupa: Zarejestrowani
Postów: 33
Pomógł: 0
Dołączył: 3.08.2005

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


login.php

ale wyświetla bład
login.php:
  1. <?php
  2. if (!$email || !$pass) {
  3. include("head.php");
  4. print "Wypełnij wszystkie pola.";
  5. include("foot.php");
  6. }
  7. include("head.php");
  8. $logres = mysql_num_rows(mysql_query("select * from users where nick='$email' and pass='$pass'"));
  9. if ($logres <= 0) {
  10. print "Logowanie nieudane. Jeśli jeszcze nie masz konta to je załóż.";
  11. include("foot.php");
  12. } else {
  13. session_register("email");
  14. print "<META HTTP-EQUIV=Refresh CONTENT="2;url=news.php">";
  15. }
  16. include("foot.php"); 
  17. ?>


Ten post edytował giciarz_1200` 12.11.2005, 22:10:54
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: 27.04.2026 - 21:29