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 -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -