Jump to content

DarkWolfXP

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

DarkWolfXP's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Srry my mistake copying the script it got the dollar symbol in count I tried that script u told me to try to make something like that still give me 0 this is "login Fail" but if I try dont encrypt and copy the password from the phpmyadmin and paste on password form and login with the username it show "Welcome user" Thats anoying -.-' P.S can any1 explain how the guy from tutorial defined the string $login $pass? I am following a tutorial and somebody asked me what are $login and $pass defined to :s P.S $login and $pass are defined to their text field but I dont see how he did that :o
  2. Hello this is my first post on this forum... Here it go! Ok I encrypted my password on the page Register.php In login.php I  made script to encrypt the password and then look if does match or not with the Database My problem is there they match but that not working well [quote]<? include "configuration.php"; $db = mysql_connect($host, $login_php, $password); $basedados = mysql_select_db($database); $pass = md5($pass); $check = mysql_query("SELECT * FROM `$table` WHERE login = '$login' AND pass = '$pass'", $db); $count = mysql_num_rows($check); if ( $count == 1 ) {   echo "Welcome User";   } else {   echo "Login fail"; } ?> [/quote] when I do echo "$count"; give me always 0 with the password What I am doing wrong?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.