Id is not passing

hi
i have four tables country,state,city,category and i kept country’s id
as primary and foreign key instate,city and category.the problem is the
foreign key is not updating in state,city and category.how could i do
this.please help me…
Thank you.

Your explanation is lacking some details.

what do you do when you expect the primary key to be “updated”?
how should it be “updated” ?
how are your model relations set up ?
what is the (relevant) controller code that is not working as expected?
…etc pp.