Mitchul
Sledmoresux
- Feb 18, 2012
- 371
- 46
I'm fairly new to PHP, and made this script last year sometime..
What it does is simply inserts text that you can have as a changelog..
The point is, on XAMPP the code works flawlessly, but when I moved to IIS, the code pretty much shat itself..
When I use the html code to post the change, I get the following error..
Incorrect integer value: '' for column 'id' at row 1
Any help?
PHP:
<?php
if($_POST['submit']){
$date = date("Y-m-d H:i:s");
$change = $_POST['theUpdate'];
mysql_query("INSERT INTO `changelog` VALUES ('', '".$change."', '".$date."')") or die(mysql_error());
$msg = "The change has successfully been added to the changelog.";
}
?>
What it does is simply inserts text that you can have as a changelog..
The point is, on XAMPP the code works flawlessly, but when I moved to IIS, the code pretty much shat itself..
When I use the html code to post the change, I get the following error..
Incorrect integer value: '' for column 'id' at row 1
Any help?