i'm 50% understand..
now, the problem is how i can determine which field i can insert in selected table..
can u give me sample code...
question 2 :
$fields = array('field1','field2','field3');
$data = array($data1,$data2,$data3);
so how i can call this $field and $data because i use array (for) and field(field1, field2,...) i get from database (table 1) while $data1,$data2,.. , i get from post function.
- i don't know how to use array in one query for example field1, field2 !
thanks....