move player to relevant round in loser bracket using php
I am building double elimination system when match completes in winner bracket the loser is transferred to loser bracket but I am having a problem how to figure out in which round that player needs to be moved i am really depressed as I am unable to figure out I have created a function where it checks on how many slots are available in the current round