i want to make a function that have two parameters which are table name and $info(includes column name and its values)
for example
$info=array('em_name'=>'Ali',
'em_salary'=>'3000',
'em_city'=>'ISB',
'em_country'=>'Pakistan');
i want to call function.
insert($info,emp);
that give me the result as follow
insert into emp (emp_name,emp_salary,emp_city,emp_country) value("Ali",'3000','ISB', "Pakistan");
any one help me for makeing this function??