You are here: Re: [PHP] MySQL update killed my login... « PHP « IT news, forums, messages
Re: [PHP] MySQL update killed my login...

Posted by "William Stokes" on 01/03/06 11:34

Thanks!

-W

"M" <lists@gazelasport.sk> kirjoitti
viestissδ:43BA3C6F.8020908@gazelasport.sk...
> It seems the upgrade was from Mysql 4.0. PASSWORD() function changed
> between 4.0 and 4.1, it uses longer hashes now. You can still use
> OLD_PASSWORD() function instead.
>
> William Stokes wrote:
>> Hello,
>>
>> My ISP updated their MySQL DB to 5.0.18 and that killed my login
>> procedure which was OK yesterday. Any ideas how to start to debug this?
>>
>> The login updates 2 fields in users table row where username and password
>> macthes. This is the code:
>>
>>
>> if (!$query = mysql_query("update tbl_users set sess_id='$sess_id',
>> sess_id_start='$date'
>> where md5(usr_name)='$usr_name' and password=PASSWORD('$password')
>> ",$connection))
>> {
>> header("Location: http://www.domain.net/loginscreen.php");
>> exit;
>> }
>> else
>> {
>> Do Login and stuff...
>>
>> This worked until today. I called the ISP and they confirmed that there
>> was a database update yesterday.
>>
>> -Will
>>

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация