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

Insert won't wok on remote server - Incorrect integer value: '

Thread began 10/11/2016 9:24 pm by mrs | Last modified 10/14/2016 1:20 pm by mrs | 1902 views | 8 replies


More investigation has led me to import all of the tables into an old database on an old server at Fasthosts where none of the tables are duplicated, I have connected the website to this old database and the insert has worked.

What I have found out is that although the MySQL versions are the same, the old server is not set to strict, whereas the new server is. As a result, if no content is being posted to an INT column, then the insert fails. As far as I can tell, if a checkbox isn't checked when I submit, then the insert fails because nothing is being passed on insert. I've got the default value for the column in the DB set to 0 if the check box isn't checked, but this isn't overcoming the issue... strict mode seems to require a value of any INT column, otherwise it fails.

So first things first, when inserting, how do I get a check box to pass zero over to the DB if it is unchecked?

Secondly, how do I overcome getting a value into an INT column if it exists in the database table, but isn't actually being used or inserted into by the webpage with the submitting form?

Is this standard MySQL practice now to abort an insert if not all columns of the table are being utilised by the insert?

How do I resolve this?

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