[eluser]Phil Sturgeon[/eluser]
Something like:
Code:
function add_visit($id) {
$this->db->update('links', 'visits = visits + 1', array('id' => $id));
return ($this->db->affected_rows() > 0);
}
That will update it by 1 and give you a true/false response over whether or not it actually did anything.