Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 226 Pomógł: 3 Dołączył: 3.04.2007 Ostrzeżenie: (50%)
|
Mam problem robie logowanie i mam blad a nie wiem gdzie dokladnie
blad Kod Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in login.php on line 30
Ten post edytował icetab 12.04.2008, 22:33:43 |
|
|
|
![]() |
| --lilik-- |
Post
#2
|
|
Goście |
Wdaje mi sie ze cos takiego wyswietla dla tego ze tabela admin nie istnieje
|
|
|
|
Post
#3
|
|
|
Grupa: Zarejestrowani Postów: 2 148 Pomógł: 230 Dołączył: 26.03.2008 Ostrzeżenie: (0%)
|
Wdaje mi sie ze cos takiego wyswietla dla tego ze tabela admin nie istnieje źle ci się wydaje (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) blad by byl "table 'admin' doesn't exist' spróbuj coś takiego:
|
|
|
|
Post
#4
|
|
|
Grupa: Zarejestrowani Postów: 2 Pomógł: 0 Dołączył: 12.04.2008 Ostrzeżenie: (0%)
|
proponuje tak:
Kod <?php
$ilosc=mysql_fetch_assoc(mysql_query("select count(id) from `admin` where `login` = '".$login."' and `haslo` = '".$haslo."'")); ?> Ten post edytował tieria 13.04.2008, 11:58:54 |
|
|
|
| --lilik-- |
Post
#5
|
|
Goście |
źle ci się wydaje (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) blad by byl "table 'admin' doesn't exist' no wlasnie nie zle, bo mialem taka sytuacje ze jak istaniala tabela nawet pusta to bylo ok a kiedy tabela nie istniala bo np zrobilem literoke to wyswietlalo mi dokladnie tak isam blod |
|
|
|
Post
#6
|
|
|
Grupa: Zarejestrowani Postów: 2 148 Pomógł: 230 Dołączył: 26.03.2008 Ostrzeżenie: (0%)
|
no wlasnie nie zle, bo mialem taka sytuacje ze jak istaniala tabela nawet pusta to bylo ok a kiedy tabela nie istniala bo np zrobilem literoke to wyswietlalo mi dokladnie tak isam blod
|
|
|
|
Post
#7
|
|
|
Grupa: Zarejestrowani Postów: 20 Pomógł: 1 Dołączył: 1.03.2008 Ostrzeżenie: (0%)
|
Może to głupie, ale łączysz się z tą bazą gdzieś wyżej? Jeśli tak, to sprawdz mysql_error(), czy połączenie zostało nawiązane [;
|
|
|
|
![]() ![]() |
|
Aktualny czas: 22.12.2025 - 10:34 |