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

Tim 'Webko' Booth tim at nicheit.com.au
Tue Nov 22 14:08:43 MST 2011


> 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();

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20111123/8881ac92/attachment.html


More information about the FX.php_List mailing list