Create generate_code.php

php that generates a unique code for each group