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

rating

fail to insert on first submit

Thread began 7/29/2012 5:57 pm by Paul | Last modified 7/31/2012 11:12 am by Jason Byrnes | 716 views | 5 replies |

PaulBeta Tester

fail to insert on first submit

Im using DA to insert a single record into my table
A logged in user selects an option from the drop down an clicks the submit button.

The selected item is supposed to be inserted into a mysql table, however it fails. (there are no messages or obvious signs it has failed)

If however, i repeat this action and select another item, the insert works fine and indeed continues to work with that session.

If i close the page and then open it again and repeat the above task, the behaviour described above is repeated.

Any ideas why this might be so please?

File attached.

Attached Files
Insert Page - Failure.zip
Sign in to reply to this post

Jason ByrnesWebAssist

how are you determining that the insert has failed?

Are you looking in the MySQL Database directly to see if the record has been inserted?

or are you relying on the out put on the page to see the inserted data?

if you are relying on the output on the page, it is most likely that the insert is working fine, it's just that the order of the code is to create the recordset on the page before the record is inserted.

since the recordset is created before inserting the new record, the new record does not exist in the recordset, so ant be displayed on the page until the next time the page is loaded.

Sign in to reply to this post

PaulBeta Tester

No record is being inserted on the initial insert, only on the second attempt and onward, does a record insert..

Sign in to reply to this post

Jason ByrnesWebAssist

how are you determining that the insert has failed?

Are you looking in the MySQL Database directly to see if the record has been inserted?

Sign in to reply to this post

PaulBeta Tester

Yes, immediately after I make my first submit, i refresh the table and there's no new entry.
As I say, if i relaod my insert page, select an option and submit again, I can see a new record has inserted into mysql table.

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

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