Jump to content

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


clankill3r

Recommended Posts

this is the query:

 

$query = "INSERT INTO kamerleden VALUES ('', '$twitter_id', '$name', '$nickname', '$fraction', '$residence', '$age', '$gender', '', '', '', '')";

 

it used to work but i switched to a different hosting.

The first '' is the id which gives this error:

 

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

 

in the database id is a int, with a length of 2 and with auto increment.

How can i fix it?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.