close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

mysql transactions

Thread began 11/10/2015 5:39 am by mbunal | Last modified 6/30/2016 1:27 pm by Ray Borduin | 601 views | 10 replies |

mbunal

mysql transactions

I began to write an application.
I store a variety of information to 2-3 tables which is collected from 6 pages.
when i pressed save button on 6. page, i want all data to be recorded in to the database.
How can i use mysql transaction for this with WA dataassist?

Sign in to reply to this post

Ray BorduinWebAssist

Use "persistent forms" to store all of the data from the 6 pages and then do the data recording all at once on the last page using the stored values.

You can't use mysqli transactions across multiple pages in general, and you can't use transactions in general without hand coding, but this technique should be a good enough equivalent.

Sign in to reply to this post

mbunal

is it possible to add persistent form functionalty to existing forms? or i must re-create all forms with form wizard?

Sign in to reply to this post

Ray BorduinWebAssist

You can use the existing forms, just add the "persistent form" server behavior to the action page of each form and they will be stored.

Sign in to reply to this post

mbunal

i cant find "persistent form" server behavior. where is it?

Sign in to reply to this post

Ray BorduinWebAssist

In the server behaviors panel under "Webassist->Persistence"

Sign in to reply to this post

mbunal

ok. little time has passed. i found persistence and i used it. i collected datas from several pages. how can i use transaction now? i must insert data in to 6 tables.

Sign in to reply to this post

Subway am Heifeskamp

You are going to have to hand code to pull it off... you will have to combine the 6 queries into one object (the code creates a new object for each by default)... then you will have to turn off autocommit and manually commit after executing all 6.

If you get it working without transactions and attach the page I can give more advice on how to make it transactional.

Sign in to reply to this post

mbunal

thanks for your reply. I was undecided to use da or pure php mysql code or any other db class?

Sign in to reply to this post

Ray BorduinWebAssist

If you need transactions then you will have to use MySQLi. The webassist server behaviors will get you most of the way there without transactions and then adding the transactions shouldn't be too difficult from there. DA uses traditional MySQL which doesn't support transactions.

Sign in to reply to this post
loading

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

Content

rating

Layout

rating

Ease of use

rating

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...