Wagtail Posted November 25, 2014 Share Posted November 25, 2014 Hello forum members, here is a link to Stack Overflow which demonstrates how to use prepared statements with the IN operator: http://stackoverflow.com/questions/11938876/mysqli-prepared-statements-with-in-operator Could someone please have a look at the post (the first answer)? Would you recommended this technique or should I use something else? Thank you! Link to comment Share on other sites More sharing options...
HartleySan Posted November 25, 2014 Share Posted November 25, 2014 I have a set of prepared statement functions that I wrote that do something very similar. The SO answer is a basic (but not ideal) solution to the problem of being able to write a function that allows you to execute a prepared statement on any query with a dynamic number of parameters. Point being, I think the code in the SO answer (by the author's own admission) is a bit sloppy, but the concept is sound and it works. Link to comment Share on other sites More sharing options...
Wagtail Posted November 26, 2014 Author Share Posted November 26, 2014 Point being, I think the code in the SO answer (by the author's own admission) is a bit sloppy, but the concept is sound and it works. HartleySan, thank you very much for getting back to me. I think I'll need to use a similar technique for the time being. I appreciate your help and hope you're well. Cheers. Link to comment Share on other sites More sharing options...
Recommended Posts