Is there an easy way to insert data to a DB table?
If you had a simple table, say:
And you wanted to insert a record, you would prepare the data in the following array:
Then to insert it into the database:
'my_faq' => " faq_id I4 AUTO PRIMARY, question C(255) NOTNULL, answer C(255) NOTNULL, ",
And you wanted to insert a record, you would prepare the data in the following array:
$my_data = array( 'question' => "What is this project?", 'answer' => "Its Bitweaver Application Framework!", );
Then to insert it into the database:
$gBitDb->associateInsert( 'my_faq', $my_data );
Comments