andrisp Posted February 19, 2007 Report Share Posted February 19, 2007 Pirms 29. rindiņas (savā kodā) ieliec echo $query; un pārliecinies, ka viss ir ok. Izpildi šo pašu kveriju mysql konsolē. Un vispār - iespējams, ka parole glabājas kaut kā nedaudz advencētāk nekā vienkārši md5. (Bet izskatās, ka ne.) Link to comment Share on other sites More sharing options...
tk1 Posted February 19, 2007 Author Report Share Posted February 19, 2007 pec idejas tas md5 nerukā jo vinjs rāda SELECT * FROM ibf_members WHERE name = 'tk1' AND member_login_key = md5('-parole-')ERROR: Incorrect username or password! -parole- vieta man tadu pasu pass kādu ierakstiju :/ Link to comment Share on other sites More sharing options...
andrisp Posted February 19, 2007 Report Share Posted February 19, 2007 Ne ne, rukā gan. Pārveidošana notiks mysql pusē, kad tas pārsēs tavu kveriju. A tu esi pārliecināts, ka tev pareizie lauki tiek izmantoti ? Link to comment Share on other sites More sharing options...
tk1 Posted February 19, 2007 Author Report Share Posted February 19, 2007 Tu domā par mysql vai par - <html> <head></head> <body> <center> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> Username <input type="text" name="username" value="<?php echo $_COOKIE['username']; ?>"> <p /> Password <input type="password" name="password"> <p /> <input type="submit" name="submit" value="Log In"> </center> </body> </html> <?php Link to comment Share on other sites More sharing options...
andrisp Posted February 19, 2007 Report Share Posted February 19, 2007 Par mysql. To, ka dati no formas tiek nodoti pareizi, tu taču pats redzi, kad taisīji echo $query; Link to comment Share on other sites More sharing options...
tk1 Posted February 19, 2007 Author Report Share Posted February 19, 2007 pareizi jo datubaze warezlv atrodas tabula Ibf_members un šaja tabulā ir lauki name kur ir vārds un member_login_key kur ir pass! $query = "SELECT * FROM ibf_members WHERE name = '" . $_POST['username'] . "' AND member_login_key = md5('" . $_POST['password'] . "')"; Itkā nepareizi nav :/ Link to comment Share on other sites More sharing options...
Recommended Posts