http://www.perlmonks.org?node_id=183147


in reply to MySQL Problem

besides the points that the other monks have made, it looks like you are trying to insert a blank or NULL value to the primary key of the table (i assume that the "id" column is the primary key of the "news" table. A primary key cannot be null. try adding a valid value to the id column and see what happens