I am using dob as password.it should be given by user in dd/mm/yyyy format.and i want to compare it with database to see it is correct or not.
this in not correct way.please use MD5 hash to secure your password
use md5($str)
md5($str)