Sorry for monopolizing your thread lately...
After putzing around with the code some more, I came to realize the code does work if and only if:
1. There are at least two entries in the database
2. I don't try to create or modify Address or LookUp fields.
I've figured out why the first of these is true, though I haven't worked out a fix yet (I don't expect it should be a common problem): If there is only one row of data,
PHP Code:
foreach($results as $result)
tries to handle each field as a separate row.
So, that said, three questions now remain:
1. How do I modify the script to check if there is only one row?
2. How do I insert or update Address fields?
3. How do I insert or update Lookup fields?
Bookmarks