Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/sites/yoyo.pl/f/c/fckublinie/login.php on line 34
A oto kod strony :
<form action="login.php" method="post"> <table border="0" width="580" align="center"> <tr> <td width="180" align="right"> Uzytkownik :</td> <td width="400" align="left" colspan="2" > <input type="text" size="30" name="username"></td> </tr> <tr> <td width="180" align="right"> Haslo :</td> <td width="400" align="left" colspan="2" > <input type="text" size="30" name="password"></td> </tr> <tr> <td width="180" align="right"></td> <td width="145"></td> <td width="255"><input type="submit" name="submit" value="Login"></td> </tr> </table> </form>
<?php if (!$post["username"] or !$_post["password"]) { exit; } } $query = 'select * from user where name = $_post["username"]'; if ($row_count == 0) { } else { if ($_post["password"] == $row["pass"]) { $SESSION["auth_username"] = $_post["username"]; if ($row["level"] == 'superadmin') { elseif ($row["level"] == 'admin') { else { } else { } } ?>
Wie ktoś o co może chodzić?



