You cannot upload PHP files to the forum, nor can you insert complete PHP code in the editor.
You have to figure it out yourself.
Wouldn't it be easier to pay someone a few dollars or a euro to create and configure it for you according to your CSV file?