[FX.php List] Help With Syntax

Bob Patin bob at patin.com
Mon Feb 5 16:33:06 MST 2007


Put this in your code:

echo $ReturnedData['errorCode'];

What error are you seeing?


On Feb 5, 2007, at 9:49 AM, Gary Henderson wrote:

> Ok here’s where I’m at now.  A totally different error.
>
>
>
> Code is:
>
>
>
> <?php
>
>
>
> require("FX.php");
>
>
>
> $serverIPAddress = '66.153.143.128';
>
>
>
> $currentDatabase = 'od.fp7';
>
>
>
> $InstanceName = new FX($serverIPAddress);
>
>
>
> $InstanceName->SetDBData($currentDatabase, 'od', 'All');
>
>
>
> $InstanceName->SetDBPassword("odsports","Admin");
>
>
>
> $ReturnedData = $InstanceName->FMFindALL();
>
>
>
>
>
> print_r($ReturnedData);
>
> ?>
>
>
>
>
>
> Page with results is online at http://www.o-d.com/FX/odtest.php
>
>
>
>
>
>
>
>
> Gary Henderson
> Director of Business Development
>
> Offense-Defense Sports
> 309 Bush Drive
> Myrtle Beach, SC 29579-7315
>
> garyh at o-d.com
> http://www.o-d.com
> AIM: gary2484
>
> tel:
> fax:
> mobile:
>
> 843-903-1888 ext 19
> <image001.gif>
>
> 843-903-2749
> 843-267-8405
> <image001.gif>
>
>
>
>
>
>
>
> Add me to your address book...
>
> Want a signature like this?
>
>
>
>
> From: fx.php_list-bounces at mail.iviking.org [mailto:fx.php_list- 
> bounces at mail.iviking.org] On Behalf Of Bob Patin
> Sent: Friday, February 02, 2007 6:38 PM
> To: FX.php Discussion List
> Subject: Re: [FX.php List] Help With Syntax
>
>
>
> So that makes me wonder, have you uploaded the FX folder to your  
> web server? :)
>
>
>
> Stupid question probably, but I've been bitten so many times by the  
> simplest of errors...
>
>
>
>
>
> On Feb 2, 2007, at 5:33 PM, Bob Patin wrote:
>
>
>
>
> Forgive my ignorance here, but does "require("FX/FX.php")" work  
> equally well as "include_once("FX/FX.php")?
>
>
>
> You can also return an error code in the last line, which may help;  
> if you're getting a parse error, it was probably because of the  
> lack of the semicolon in the last line of your code.
>
>
>
> Also, in my code, I always specify the extension of the database  
> file too, so it reads "od.fp7":
>
>
>
> <?php
>
> include_once("FX.php");
>
> $serverIPAddress = '66.153.148.215';
>
> $currentDatabase = 'od.fp7';
>
> $InstanceName = new FX($serverIPAddress, "591");
>
> $InstanceName->SetDBData($currentDatabase, "od");
>
> $InstanceName->SetDBPassword("odsports","Admin");
>
> $InstanceName->AddDBParam('od', "od", 'eq');
>
> $ReturnedData = $InstanceName->FMFind();
>
> echo $ReturnedData['errorCode'];
>
>
>
> ?>
>
>
>
> Also, are you sure that PHP is running on the web server? Have you  
> tried a page with
>
>
>
> <?php
>
> phpinfo();
>
> ?>
>
>
>
> That'll at least tell you that PHP is running, and what version  
> you're running (as well as a ton of other info). Forgive me if I'm  
> telling you something you already know...
>
>
>
> Bob Patin
>
> Longterm Solutions
>
> bob at longtermsolutions.com
>
> 615-333-6858
>
> http://www.longtermsolutions.com
>
>
>
> CONTACT US VIA INSTANT MESSAGING:
>
> AIM or iChat: longterm1954
>
> Yahoo: longterm_solutions
>
> MSN: tech at longtermsolutions.com
>
> ICQ: 159333060
>
>
>
>
>
>
>
> On Feb 2, 2007, at 4:10 PM, DC wrote:
>
>
>
>
> it's probably an error object. try print_r instead of echo. also  
> try echoing <pre> tags before and after the print_r to see it nice  
> and neat.
>
>
>
> looks like your file is named od? shouldn't youhave a .fp7 or .fp5  
> after that?
>
>
>
> dan
>
>
>
> _______________________________________________
>
> FX.php_List mailing list
>
> FX.php_List at mail.iviking.org
>
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
>
> <image001.gif>
> _______________________________________________
> 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://www.iviking.org/pipermail/fx.php_list/attachments/20070205/3d8ca5c8/attachment-0001.html


More information about the FX.php_List mailing list