Не работает запрос к БД u_password=password('$pas')

Yura

Новичок
Не работает запрос к БД u_password=password('$pas')

Не работает проверка пароля SELECT * from user where u_login='$u_login' and u_password=password('$password'). По логину все ищется, а пароль не хочет. У меня на компе все работает и у другого хостера все работает. Какие настройки могут на такое влиять? Хостеру написал по мылу, но отвечают они очень нескоро, а дозвониться сложно.
 

Андрейка

Senior pomidor developer
раз
Note: The PASSWORD() function is used by the authentication system in MySQL Server; you should not use it in your own applications. For that purpose, use MD5() or SHA1() instead. Also see RFC 2195 for more information about handling passwords and authentication securely in your applications.

дваз
OLD_PASSWORD() was added to MySQL when the implementation of PASSWORD() was changed to improve security. OLD_PASSWORD() returns the value of the old (pre-4.1) implementation of PASSWORD(), and is intended to permit you to reset passwords for any pre-4.1 clients that need to connect to your version 5.0 MySQL server without locking them out.
 
Сверху