[eluser]Chris Davies[/eluser]
Sorry, I wasnt sure how to explain myself.
Here is my full function:
Code:
public function follow_user() {
$follow_id = $this->EE->input->post("follow_id", TRUE);
$member_id = $this->EE->session->userdata('member_id');
$data = array(
"follow_id" => $follow_id,
"member_id" => $member_id
);
$this->EE->db->insert('follow', $data);
}
Basically, I want to check in the database that a row with those two values doesn't exist.
I just don't know where to start...