Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 31.07.2007, 03:01   #7
Guaresnay
Архивный участник
 
Join Date: Oct 2005
Posts: 113
Default

Quote:
Originally Posted by ZeniMax View Post
I dont want to see the password (becaouse its impossible). I only want to see the row info. But my question its why all the time gives blank results.

PS: I use this to compare function (its a page for change password, I add to compare the $_POST['answer1] to compare with the answer1 in user_auth.

Code:
$answer1_e = '0x' . bin2hex($respuesta1);
In that case, ask for old pass, encrypt it, then u check if that password is the same that the password stored using the binary function for SQL..
its like..
PHP Code:
$query = "SELECT account, password FROM user_auth with (nolock) WHERE account = '".$_POST['account']."' AND password = CONVERT(binary, ".encrypt($_POST['oldpass']).")";
$link = mssql_query ($query);
if(!
mssql_num_rows($link)){
       
$error = "wrong password";
} 
Guaresnay is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:55.