Re: ibase_num_fields() -a workaround ?
| From: | Richard Lynch | Date: | Sat, 20 Jan 2001 09:34:56 +0000 |
| Subject: | Re: ibase_num_fields() -a workaround ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35794@lists.php.net to get a copy of this message | ||
> ibase_num_fields() isn't functional in php 4 - anyone have any ideas to
> work around this ?
>
> I'm checking the number of results for a query to check if a
> user/password is correct -I suppose I could just do a fetch_row() on the
> result and test if thats empty or not - but I'll only do that as a last
> resort
select count(*) from users where userid = '$userid' and password =
password('$password')
might be a good choice.
Actually, I usually like to check userid first, and then password -- I
prefer to inform the user if their username is wrong or just the password.
Lord knows I've got enough usernames/passwords on all these darn sites that
I sure appreciate it when somebody tells *me* I ain't even remembering the
username right, much less the password.
By Day: |By Night:
Don't miss the Zend Web Store's | There's not enough room here...
Grand Opening on January 23, 2001! | Start here:
http://www.zend.com | http://l-i-e.com/artists.htm