How to merge arrays and use array_unique function to get unique values

OP, does this have to do with your other thread where you are trying to manually increment id’s? If so, you are focusing on fixing your attempted solution to the real problem that as far as I have seen, have not answered what that is.

https://www.sitepoint.com/community/t/how-to-get-the-values-and-proceed-to-the-next-incrementing-id-at-the-same-time-in-mysql-using-select-st/345469