[FX.php List] Authenticate with FileMaker account.

Gjermund Gusland Thorsen ggt667 at gmail.com
Thu Aug 31 23:40:33 MDT 2006


Not sure which line is 12, but have you tried something like this?
Perhaps it works?

if( is_array( $queryResult ) ) {
    If( $queryResult['foundCount']==1 ) {
        echo "passed";
    } else {
        echo "failed";
    }
}

On 8/31/06, Jerry Do <jhdo at central.uh.edu> wrote:
>
>  Thank you for the reply,
>
>  The problem I am having is when user enter wrong login information.
>
>  ...
>  $query->SetDBPassword( $password, $username );
>  $queryResult = $query->FMFindAny();
>
>  If($queryResult['foundCount']==1)
>      {echo "passed";}
>  Else
>      {echo "failed";}
>  //////////////////////////////////////
>
>  If invalid login information entered, it will display with the following
> error:  "Fatal error: Cannot use object of type FX_Error as array in
> c:\Inetpub\wwwroot\test\logintest.php on line 12"
>
>  Is there another or better to do this?
>
>  Thank you in advance,
>
>  Jerry
>
>
>
>
>
>
>  On 8/31/06 2:16 AM, "Gjermund Gusland Thorsen" <ggt667 at gmail.com> wrote:
>
>  > Use: $query->SetDBPassword( $password, $username );
>  >
>  > but you need to add them to the CWP group in FileMaker accounts.
>  >
>  > ggt667
>  >
>  > On 8/30/06, Jerry Do <jhdo at central.uh.edu> wrote:
>  >> Hello all,
>  >> I would like to authenticate users with FileMaker's passwords.  I am
>  >> currently using an account table.  It is working great, but I have to
> use
>  >> FileMaker accounts in the next project.  Can anybody shred some light on
>  >> this matter?  Any suggestion will be helpful since I am still a newbie
> with
>  >> FX.php.
>  >>
>  >> Thank you
>  >>
>  >> Jerry,
>  >>
>  >>
>  >>
>  >> _______________________________________________
>  >> FX.php_List mailing list
>  >> FX.php_List at mail.iviking.org
>  >> http://www.iviking.org/mailman/listinfo/fx.php_list
>  >>
>  > _______________________________________________
>  > FX.php_List mailing list
>  > FX.php_List at mail.iviking.org
>  > http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
>


More information about the FX.php_List mailing list