php always giving the same hashed string when using random variables and timestamp -


i using following random code can used reset password getting same value $encrypt surely rand , timestamp should make different each time?

$randnumb = rand(1000000000000,999999999999); $timestamp = time(); $encrypt = md5($row['userid']+$timestamp+$randnumb); 

use . concatinate operator instead of + operator


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -