4 ms·
PDO. You write the query and insert the variables in a second step. I’ve been doing php 10+ years and that’s all we’ve been using. Or if your framework ha
by acomjean 5y ago
PDO.
You write the query and insert the variables in a second step. I’ve been doing php 10+ years and that’s all we’ve been using. Or if your framework has an orm you can use that.
There are pdo drivers for most popular databases
https://www.php.net/manual/en/book.pdo.php https://www.php.net/manual/en/book.pdo.php
Honestly it’s my favorite way of accessing databases (compared with Java Perl and python)