Re: Is this the best way?
| From: | Dan Joseph | Date: | Fri, 14 Mar 2008 16:45:50 +0000 |
| Subject: | Re: Is this the best way? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271584@lists.php.net to get a copy of this message | ||
>
> I am attempting to add a little error checking for a very simple login
> system. The info is stored in a MySQL database, and I am using mysqli
> to connect to it. I have it working with the solution provided below,
> but I am wondering if this is the right way to do it or if there is a
> better way?
>
>
>
I don't see anything wrong with that method. One thing I would suggest is
that you make username unique in your database if you want to avoid
duplicate results. But your way of checking is just fine as it is.
--
-Dan Joseph
"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."