From: Barabule Muci Date: 2007-01-17T18:10:46+09:00 Subject: Re: mysql error handle No i create users on mysql with rights on tables, this is why i chose this metode. Every user has a table that can acces. Michael W. Ryder wrote: > Barabule Muci wrote: >> >> I wan't to get the error in ruby and to display only my message like >> "Invalid password." >> It's help me, because i have made an login script and i wan't to check >> the user and password by connecting on mysql with that user and >> password. >> Thanks >> > > Couldn't you create a separate account with a single table with only the > user names and passwords in it? This way you can use a set login to > access this account and check if the user account is in the table. If > it exists then check the password. If the information is correct > continue with logging into the desired database otherwise display the > error message of your choice. -- Posted via http://www.ruby-forum.com/.