Sending a Code to an Email Address in CodeIgniter |
I can't see if $this->random_string() is a function inside your controller.
If it is, the next line of code doesn't make sense. If it's not, you will get an error message on that line. I think you should do this: PHP Code: $this->load->helper('string'); To save the code into your database, the pass_word field must be a VARCHAR field that can hold 32 characters, because an md5 is always 32 characters long. If you want a shorter code, you can use one of the other options of the random_string() helper function. http://www.codeigniter.com/userguide3/he...elper.html |
Welcome Guest, Not a member yet? Register Sign In |