I use text file as my "database".  

I use it to search for users.  

My problem is: It does search for names and it is working but it doesn't search for passwords.  

I know this is confusing but please look my code, it is lot easier for understeand

**PHP**

```
<?php
$file = fopen("msskladanj_login/admins.txt","r");
$name = "Jonathan";
$password = "Jon123";

while(!feof($file)){
  $array = explode("****",fgets($file));
  $file_name = $array[0];
  $file_password = $array[1];

  if($file_password == $password && $file_name == $name){
    echo "Wellcome: ".$file_name;
  } 
}
?>

```

**admins.txt**

```
Jonathan****Jon123
Arthur****arthur123

```

I don't know what is problem and how is possible they are not the same when they are?