@DickJ41R You really need to post the code if you expect any replies. And sprintf() can only take the number of parameters as you have placeholders in the string. Also, the order in which you list the params must match the placeholder directives type.
Dec 28, 2017
2
Level 3
Practical PHP
In the Practical PHP section regarding the dynamic creation of query strings. I tried to extend the code by adding another field. With this change, sprintf threw an error which was related to the number of arguments. I was able to bypass issue by using ...explode to form the field and value arguments.
Please or to participate in this conversation.