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

Can someone explain me the idea behind this not working

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

But instead

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

El Forum

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