In your database design you need the following
every username/pass comb is unique.
so a query like ....... WHERE username='$testvalue' AND password='$testvalue2'
Have to give you one row for a good user/passcombination ALWAYS. And 0 rows
for a wrong combination.
If NOT your design doesn;t fit your needs!!
Op donderdag 15 augustus 2002 01:18, schreef Sascha Braun:
> right yet I have another problem. I want to select a username an a =
> password from a database. The Values for tghe select are stored in a =
> session variable.
> And my problem is, that when I run the Query there is no difference in =
> the mysql_num_rows($Result)
> it both time (When the User is in the Database, or the Username is =
> emtpy) 0.
> How am i able to ckeck the value to do some branching?
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php