Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • First of all is the missing comma between $sql and [string] a copy paste error? And can you please show how you call your function? Commented Feb 9, 2018 at 10:48
  • Hi rufer7, yes comma was a copy paste error apologies. Added method call to question. Commented Feb 9, 2018 at 10:50
  • You do not pass anything to $logFile so it will have default value (not the value from outer scope). BTW you define DoSomeSqlForMe but calling DoSql. Commented Feb 9, 2018 at 10:54
  • Apologies, rufer7 kindly edited for me. Commented Feb 9, 2018 at 11:01