Simple save data to db in Craft CMS I am new to Craft CMS.  Please tell me about how can I save data into database in Craft? 

I have searched a lot of results about my query but nothing give advantage to me.

Thanks in advance.
I suggest you to read about the Yii Query Builder 

craft()-&gt;db-&gt;createCommand()
    -&gt;insert('mytablename', array(
        'field1'    =&gt; 'foo',
        'field2'    =&gt; 'bar'
    ));


Or you can use Active Records in Craft

$record = new Record();
$record-&gt;field1 = 'foo';
$record-&gt;field2 = 'bar';
$record-&gt;save();


Or you can use Craft Elements (entries/categories/tags)

$entry = new EntryModel();
$attributes = [
   'section'   =&gt; $yourSectionId,
   'entryType' =&gt; $yourEntryTypeId,
   'field1'    =&gt; 'foo',
   'field2'    =&gt; 'bar'
];
$entry-&gt;getContent()-&gt;setAttributes($attributes);
craft()-&gt;entries()-&gt;saveEntry($entry);