> 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]