Welcome Guest, Not a member yet? Register   Sign In
A Database Error
#5

[eluser]umefarooq[/eluser]
here is my model code

Code:
class FormModel extends Model {
        
        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;
        
        function FormModel(){
            parent::Model();
        }
        
        function insert_entry(){
            
            print_r($_POST);

            $this->width = $this->input->post('width');
            $this->height = $this->input->post('height');
            $this->scalecontent = $this->input->post('scalecontent');
            $this->firstpage = $this->input->post('firstpage');
            $this->alwaysopen = $this->input->post('alwaysopen');
            $this->autoflip = $this->input->post('autoflip');
            $this->fliponclick = $this->input->post('fliponclick');
            $this->staticshadow = $this->input->post('staticshadow');
            $this->dynamicshadow = $this->input->post('dynamicshadow');
            $this->movedspeed = $this->input->post('movedspeed');
            $this->closespeed = $this->input->post('closespeed');
            $this->gotospeed = $this->input->post('gotospeed');
            $this->pageback = $this->input->post('pageback');
            $this->loadondemand = $this->input->post('loadondemand');
            $this->cachePage = $this->input->post('cachePage');
            $this->cachesize = $this->input->post('cachesize');
            
            $this->db->insert('flipp_settings',$this);
        }
        
        
    }


Messages In This Thread
A Database Error - by El Forum - 10-16-2008, 05:15 AM
A Database Error - by El Forum - 10-16-2008, 05:58 AM
A Database Error - by El Forum - 10-16-2008, 06:06 AM
A Database Error - by El Forum - 10-16-2008, 06:18 AM
A Database Error - by El Forum - 10-16-2008, 06:42 AM
A Database Error - by El Forum - 10-16-2008, 06:45 AM
A Database Error - by El Forum - 10-16-2008, 07:12 AM
A Database Error - by El Forum - 10-16-2008, 07:14 AM
A Database Error - by El Forum - 10-16-2008, 09:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB