Re: mysql_num_rows($Result)
| From: | Bas Jobsen | Date: | Wed, 14 Aug 2002 22:39:51 +0000 |
| Subject: | Re: mysql_num_rows($Result) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112626@lists.php.net to get a copy of this message | ||
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:
> Mh,
>
> 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?
>
> Schura