Jump to content
php.lv forumi

Sesija


tk1

Recommended Posts

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

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

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

×
×
  • Create New...