Welcome Guest, Not a member yet? Register   Sign In
Unknown column xxx in 'where clause'
#4

[eluser]Armchair Samurai[/eluser]
[quote author="R. Oerlemans" date="1257019146"]I am working on a bug(?) for a few hours now, but couln't fix it.

This is my code:
Code:
if(!$this->db->get_where('merken',array('m_name' => $brand))->count_all_results()){
[/quote]
I don't think you can chain like that. In any case, try:
Code:
$this->db->where('m_name', $brand);

if ($this->db->count_all_results('merken') == 0)
{
    //continue code


Messages In This Thread
Unknown column xxx in 'where clause' - by El Forum - 10-31-2009, 08:59 AM
Unknown column xxx in 'where clause' - by El Forum - 10-31-2009, 09:08 AM
Unknown column xxx in 'where clause' - by El Forum - 10-31-2009, 10:55 AM
Unknown column xxx in 'where clause' - by El Forum - 10-31-2009, 12:24 PM
Unknown column xxx in 'where clause' - by El Forum - 10-31-2009, 01:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB