CodeIgniter Forums

Full Version: SQL function in WHERE clause
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
Can someone explain me the idea behind this not working

Code:
$this->db->where('MD5(column)', $value);

But instead

Code:
$this->db->where('MD5(column) = ', $value);

El Forum

[eluser]Clooner[/eluser]
Read the manual, especially the $this->db->where(); section. It describes exactly what you are asking!