Originally Posted by Arcticwarrio
in your output you have no club code so it doesn't know what to update
Thank you very much for being so helpful.
I can't believe that I've been such a 'dick head' !!!!
I couldn't see the wood for the trees.
I completely missed:
I have no excuse. I wish I had.
$club_code is defined at the top of the script: $club_code = "fr1195"; which is generated from: $club_code = "##[club_code]##";
//ADD CLUB CODE TO NEW CLUB INPUT FILE
$file_contents = file_get_contents($new_addclub);
$file_contents = str_replace("##[new_addclub]##","$new_addclub",$file_contents);
$file_contents = str_replace("##[club_code]##","$club_code",$file_contents);
Thank you for again for being so helpful. You prompted me towards the right direction.