[FX.php List] Can't get login example to work

Denis Somar dsomar at gmail.com
Tue Nov 22 14:33:35 MST 2011


Webko,

I want to have your babies.

I saw that line and understood it as such but couldn't get my code to work
and your simple fix got me back on track AND thanks for the tip of FMpro7

Thanks for the help!
Denis

On Tue, Nov 22, 2011 at 4:08 PM, Tim 'Webko' Booth <tim at nicheit.com.au>wrote:

>
>
>    1. Anyone have a good login sessions example?  I keep getting error
>    102 and I'm not sure which field it says is missing cause I'd swear I have
>    everything all set: http://www.file-making.com/tutorial/part5.php
>
> Hmm, looks like there needs to be a field called 'valid' that is a
> combination of user name and password that has been md5 hashed. Unless
> you're a bank, that seems needlessly secure... I assume there are fields
> called login and password in your database? Try something simpler like:
>
>     $q = new FX( $serverIP, $webCompanionPort );
>     $q->SetDBData( 'MemberDatabase', 'member_php' );
>     $q->SetDBUserPass( $webUN, $webPW );
>     $q->AddDBParam( 'login', $_REQUEST['login'], 'eq' );
>     $q->AddDBParam( 'password', $_REQUEST['password'], 'eq' );
>     $r = $q->FMFind();
>
>
>    1. Is FX.php hosted on Git or something like that?  I've installed
>    mine on FMSA 11 and had to dig into FX.php to enable FMpro11 as a valid
>    string.  It's a simple enough addition on my part, but something that may
>    help other newbie devs.
>
> No need to enable FMPro11 as a valid string. It's the same as FMPro7 for
> the purposes of FX (which is the default value).
>
> Cheers
>
> Webko
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20111122/1fb8cda8/attachment.html


More information about the FX.php_List mailing list