[eluser]umefarooq[/eluser]
ya id column is primary key and also auto increment but i dont know what and where is problem because first time im using CI and i want to carry on for my rest of projects. by reading the user manual its look nice.
var $id;
var $width;
var $height;
var $scalecontent;
var $firstpage;
var $alwaysopen;
var $autoflip;
var $fliponclick;
var $staticshadow;
var $dynamicshadow;
var $movedspeed;
var $closespeed;
var $gotospeed;
var $pageback;
var $loadondemand;
var $cachePage;
var $cachesize;
[eluser]umefarooq[/eluser]
with this model when i want to insert the data it give me error Column ‘id’ cannot be null but when i comment the var id than it insert the data but id is 0 always.
[eluser]Seppo[/eluser]
I'll ask two questions, if you don't mind...
Can you run "DESCRIBE flipp_settings" and post the results? Are you using MySQL or other DB engine?