| 
<?php
 $tblname    = 'phonebook';
 
 if(!$this->is_db($this->dbname)){
 $this->dbCreate($this->dbname);
 $this->redirect();
 }
 if(!$this->is_table($tblname)){
 
 $options = array(
 'id:increments',
 'name',
 'phone',
 'email',
 'created_at',
 'updated_at'
 );
 
 $this->tableCreate($tblname, $options);
 
 $rows = array(
 array(
 'name'          => 'John Doe 1',
 'phone'         => '05554443322',
 'email'         => '[email protected]',
 'created_at'    =>  $this->timestamp
 ),
 array(
 'name'          => 'John Doe 2',
 'phone'         => '05553332211',
 'email'         => '[email protected]',
 'created_at'    =>  $this->timestamp
 ),
 array(
 'name'          => 'John Doe 3',
 'phone'         => '05556665544',
 'email'         => '[email protected]',
 'created_at'    =>  $this->timestamp
 )
 );
 
 $this->insert($tblname, $rows);
 }
 ?>
 
 |