Jump to content

Adding elements from one multidimensional array to another


Recommended Posts

PPS -- Actually, I just now got both errors when I ran it with the conditional.  The fact that it repeated the error three times as  indicated above would indicate that the fatal error didn't occur that time.  When I just ran it, it did.  The errors returned are inconsistent.

Here are the two errors:

Warning: Undefined array key "title" in /Users/studio/Sites/BannerProject/b-as/_test_site/__classes/upload_images.php on line 71

(on the conditional line)

Fatal error: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined in /Users/studio/Sites/BannerProject/b-as/_test_site/__classes/upload_images.php:72 Stack trace: #0 /Users/studio/Sites/BannerProject/b-as/_test_site/__classes/upload_images.php(72): PDOStatement->execute(Array) #1 {main} thrown in /Users/studio/Sites/BannerProject/b-as/_test_site/__classes/upload_images.php on line 72

(on the "execute" line)

Link to post
Share on other sites
18 minutes ago, Barand said:

name="1['title']"
        ^     ^
     remove those
     single quotes
     in all inout names

 

It works!  I guess html doesn't like quotes in array elements.  Hooray.  Many thanks,  I guess we're good to go.  Sorry for how long it took.  I appreciate your persistence.

--Kenoli

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.