WingMaker Posted October 8, 2009 Posted October 8, 2009 Hi All, I get this warning after my php script runs: Warning: Invalid argument supplied for foreach() in /Library/FileMaker Server/Web Publishing/publishing-engine/php/lib/php/FileMaker/Implementation/Command/AddImpl.php on line 9 Can someone help tell me whats going on? In the php script I have several API commands that create records.(newAddCommand) Also these commands are in one php function? (is that the problem maybe?) thanks RB
Peter (duksis3) Posted October 8, 2009 Posted October 8, 2009 Difficult to say. Give PHP code, please.
Baloo Posted October 8, 2009 Posted October 8, 2009 foreach() takes two arguments the first has to be an array the second becomes the placeholder for each value in the array. That error means that the first value supplied to the function is not an array. Without seeing the code its hard to say more
Recommended Posts
This topic is 5782 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now