[FX.php List] Question about an FX error

Dale Bengston dbengston at tds.net
Wed Mar 17 13:56:39 MDT 2010


Hey Bob,

Since $findResult is an object, not an array, you can't pull an element out of it with the same [] syntax used with an array. Try using print_r($findResult) to dump the whole object out to the screen. It should tell you what's wrong.

Dale

On Mar 17, 2010, at 2:51 PM, Bob Patin wrote:

> Well, I think the query *itself* isn't even executing; why would this work fine for several years on the same database, same database server, and then start failing on a new web server? The only difference here is that one was running Tiger Server, now she's running Leopard Server.
> 
> Same database, same database server, same exact PHP pages...
> 
> That's what is so puzzling to me; at first, when she called, I thought it was perhaps some undefined variables somewhere, because I know that's something that can be different in a different PHP install, but that's not the case here.
> 
> I commented out everything after the query itself, and put in 
> 
> echo $findResult['errorCode'];
> 
> and I get the same error. It's not even successfully executing the query at all...
> 
> 
> BP
> 
> 
> On Mar 17, 2010, at 2:32 PM, Steve Winter wrote:
> 
>> Looks like the db query is failing for some reason, and line 22 of the script is expecting an Result object, but is getting an Error object instead.
>> 
>> Try examining the result of the query which was presumably executed on line 21, and see what the FM error is, that's failing to get a vlid result object...
>> 
>> 
> 
> _______________________________________________
> 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