I need a php function to update my mysql table with city_id. I have a mysql table with many rows for which I want to add random city_id in one of the column. I will provide a table containing the city_id’s and the number of times the id should be added for each run. See attachment for full description.
60 freelancers are bidding on average $38 for this job
Hi, I am PHP developer. I will do the task for you. On each iteration, the count will be decreased. Then if the count is >0 only then that city will be added to table.