I have a function called send resources, so basically the admin can send a resources to a specific user and i have new table called entries which I have the FK of user_id from tables users and res_id from resource_id.
my question is how can I check if the user already have that value from res_id. I need to have a somewhat a validation thingy. I cant figure it out. can you guys help me?
this is my controller
public function ressend() {
$db = new resource_model();