[eluser]VasilK[/eluser]
Thank you for the warm welcome!

[quote author="TheFuzzy0ne" date="1244745185"]
Try this:
Code:
$confirmation_hash = $this->db->query("SELECT SHA1('{$confirmation}')");
[/quote]
Yes, it's much better! Still, now I have problem to access the value. I tried with this:
Code:
$sample = $confirmation_hash->first_row('array');
But looks like the argument to access the filed in $sample is the value of the $confirmation itself... or maybe I did not understand it right! Could you please share with me the few lines how to get the value from this query. Thanks!
[quote author="TheFuzzy0ne" date="1244745185"]
Not too sure why you're using the database for this, though...[/quote]
Hm... I was being told that sometimes, the sha1 php function could be bit different from the MySQL SHA1. In this case, I use the MySQL SHA1 when saving in the database, so I need to create that one again.
Take care!
Vasil