Mam tabele users, a w niej pola: UserId, Login, Password, Key, Activate.
Nie wiem dlaczego caly czas mi wywala bład:
Kod
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\...\users.php on line 33
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\...\users.php on line 34
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\...\users.php on line 34
gdy chce wywolac taki kod:
<?php $key = 'jfhdfe98f4e89f'; $sql = "SELECT * FROM users WHERE Key='$key' AND Activate='1'"; ?>
Zapewne coś przeoczylem ale juz n-ty raz szukam bledu i nie moge go znalezc :/
Nazwy pol na 100% dobrze wpisane.
Z gory dzieki za pomoc.