in reply to Re^3: Storing a variable in a file and processing within the script
in thread Storing a variable in a file and processing within the script

I absolutely agree -- scope confusion waiting to happen.

I also fully agree with the other posters who added the suggestion to use clearly identifiable tags (I'm a big fan of double hash sign encapsulated codes like ##TABLE_NAME## and such), as well as the numerous warnings about this solution being susceptible to injection attacks.

I just figured the first step was to get the OP past the operational issue, and then start layering in the good engineering practices LOL.

  • Comment on Re^4: Storing a variable in a file and processing within the script