Re: Is this the best way?

From: Date: Fri, 14 Mar 2008 16:53:28 +0000
Subject: Re: Is this the best way?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-271587@lists.php.net to get a copy of this message
On Mar 14, 2008, at 12:45 PM, Dan Joseph wrote:
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.
Hey Dan, Thanks for the reply! I couldn't find any reason why it wouldn't work, but just wanted someone else to look at it as well... I'm not the best programmer yet... Or at all.. But I'm getting there! Thanks for the tip about the username being unique.... I'll make that change as well... -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424-9337 www.raoset.com japruim@raoset.com

« previous php.general (#271587) next »