close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Getting Array session into database

Thread began 10/09/2019 8:21 pm by lr_leal239405 | Last modified 1/21/2020 9:00 am by lr_leal239405 | 729 views | 5 replies


Trying to get Array session values into database with foreach with no success - only inserts last item of the array

Got a couple of days into trying to get this array to show in the 2nd page and then capture on database. All I get is the last line of the array. Attached are the files. I want to get the products into the confirm page and have it save to the database. I only get one line of products out of two.

This only applies to this line:
$ReplaceQuery->bindColumn("DetailItems", "s", "". implode(',',$value) ."", "WA_DEFAULT");
in the details table

You can see it by going to .com, Items in Stock - box, then, View Your Orders, then login with details below.

Make sure you add an x to the name of the file as such:

(otherwise you'd be in the Live one).

On pressing Reorder, it goes to the form that is filled out and press submit which the Commit page handles. That's the page that won't all the rows into the db. (There's an array within an array by the way), so I'm pretty sure my logic is not very good.

You'll see all my commented out lines in my attempt to get it to work.- No Go.

Attached Files

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...