This is your problem $login_query="select
* all
from admin_login where user_name='$user_name' and user_password='$user_pass'";
You added * this means all annd behind it you added all again.
use this
$login_query="select * from admin_login where user_name='$user_name' and user_password='$user_pass'";