Okay so undefined variable was a matter of utilizing isset, but this undefined index I have no idea what to use.
Notice: Undefined index: user_id
where I have something like :
$result = my_query("SELECT columns FROM table WHERE id='".$row['user_id']."'");