Can someone show me how to change the following SQL into CI’s active stuff.
$query = $this->db->query('UPDATE pollanswers SET pollAnswerPoints = pollAnswerPoints + 1 WHERE pollAnswerID = '.$pollanswerid.'');
return true;
Also, how would i add an if statement to that to see if it completed properly return true, if not return false?
Cheers,
try this
Edit: