Need simple PHP help

snakeccc

Junior Member
Joined
Jan 23, 2012
Messages
125
Reaction score
113
How can i for example secret code read from my db ???

$secret = 'b75a36cb89b50afe1eaa90f965b51b4c';

If this b75a36cb89b50afe1eaa90f965b51b4c is placed in datebase table :D
 
You mean you just want the query to search the database for this hash?
 
How can i for example secret code read from my db ???

$secret = 'b75a36cb89b50afe1eaa90f965b51b4c';

If this b75a36cb89b50afe1eaa90f965b51b4c is placed in datebase table :D

At first glance it looks to me as MD5 hash.

Code:
<?php
$str = 'password';

if (md5($str) == 'b75a36cb89b50afe1eaa90f965b51b4c') {
    echo "Password matches ...\n";
} else {
    echo "Invalid password ...\n";  
}
?>

Hope that helped to point you to the right direction.
 
Back
Top