seengee,
I don't know PHP.
Within Access, if you do inserts via SQL, you can have problems
like that and not be aware of it.
If you insert data into a table and a required field is missing,
or a data type mismatch or a duplicate primary key then the
insert operation will fail. There is no error flag or message
and your code is blissfully unaware that there is a problem.
The solution in the above scenario is to compare each data
element to be inserted with the definition in the table and
manually look for conflicts.
This may have nothing to do with your situation, but it may
get you started while you wait.
Wayne