I have these declared
$username = $this->users->getUsernameById($file->user);
$sessionuser = $this->session->userdata('username');
How would I go about comparing to the two values and if they match, execute code? I had
if ( $username == $sessionuser){
blalghalhalhalhllahblahhblahhblahhh
}
However, even when the two variables are the same, it doesn't seem to trigger the if statement. Did I do something wrong? maybe not ==, just =?