Discussion: Is this the best way?
Afficher un message
Vieux 14/03/2008, 18h45   #2
Dan Joseph
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Is this the best way?

>
> 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."

  Réponse avec citation
 
Page generated in 0,04484 seconds with 9 queries