I use PDO, so the method is a little different, but if you scroll down this forum for a few topics you’ll find plenty of code that uses the technique.
ETA: here you go, from a couple of threads down:
I use PDO, so the method is a little different, but if you scroll down this forum for a few topics you’ll find plenty of code that uses the technique.
ETA: here you go, from a couple of threads down: