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 doesnt seem to trigger the if statement, did i do something wrong? maybe not ==, just =???