What is the value returned from the database?
$que = mysql_query($link, "SELECT * FROM `logins` WHERE `login` = '".$name."'");
As I understand it will not be such a "if value found then true if not found then false".
Once Google realized that such a request in the positive case, return line, but most information I found or was looking for good.
Help to decide what is returned from the query in case of success and failure.
Thanks in advance :)