I am getting values in an array like this:
Array
(
[0] => English
[1] => Arabic
)
I am having 2 columns in database like bel
If you want to insert new record you must give every column its value , not just language1, language2
Maybe some columns has default values in DB, if it is, you can skip theme in sql statment.
Try this:
INSERT INTO table_name
VALUES (value1, value2, value3,...)
Or visit this page maybe help you: http://www.w3schools.com/php/php_mysql_insert.asp