Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

MySQL insert statement does not work under iis 8 with php 5.5.9

$
0
0

 Hi folks

I have been working with my website using php, MySQL and Apache.

It worked fine. Recently I transferred it to Windows Server 2012 machine  with IIS 8, MySQL and php.

When I try to insert a new record into MySQL databse I get the following error:

Database query failed: Incorrect integer value: '' for column 'columnname' at row 1

The problem is that my insert statement uses single quotes around all values as given below:

INSERT INTO table_name (primarykey, item1, item2, item3) VALUES ('value1' ,'value2','value3','value4')

This statement works fine on wampserver on windows environment and also on my Linux host (production server) but it fails on IIS 7.5.

Does it has anything to do with IIS or MySQL?


Viewing all articles
Browse latest Browse all 7363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>