close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

insert record problem

Thread began 5/26/2010 12:55 pm by Kev Hegan | Last modified 5/27/2010 5:16 pm by Kev Hegan | 1002 views | 5 replies

Kev Hegan

insert record problem

Hi,

I'm struggling with a problem that I can't fix. I wonder if anyone here can help. I'm not familiar with php and databases, so I shooting in the dark with trying to figure out what's going wrong.

I have successfully made a search page that works (thanks to a little help on this forum) and displays the results, I can edit and update records and so on, but the one thing I can't get to work is the insert record function. It will update the database, but it won't increment the primary key, which is a field called ID. What comes straight out of the wizard shows as a NULL in the ID column when you check the database. Therefore you can't view the record etc. I managed, not sure how, by hacking around with the code to get it to enter a 0 in the field and this allowed me to view the resulting record, but it needs to incerment the number obviously.

I've attached the files produced by the wizard. This is the result of just running it without making any of the changes I need... it should be a clean version of what comes out of the wizard.

If anyone can have a look, that would be great. I have looked at the insert record server behaviour but I don't really understand it. It says if you want to ignore a column leave it blank. The ID is blank but that's how it came out of the wizard. I tried putting in WADAInsertRecordID, which sounded promising, but that only meant it would add a 0 and not increment the ID number.

Attached Files
insert_record_problem.zip

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