[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