[eluser]dallen33[/eluser]
This is more of a PHP question, but I have an if statement in a function that looks like this:
Code:
if ($this->db->insert('online_ads', $data)):
return true;
endif;
If the insert fails, do I need to do an else: return false? Or do I even need an if statement? If the insert fails, will it return false? And if it doesn't fail, will it return true?