问题
Are PHP/mysql prepared statements possible when mysqli and PDO are not available? Are there working Pear solutions for this problem?
回答1:
http://pear.php.net/manual/en/package.database.mdb2.intro-execute.php
That should contain all the information you need.
Otherwise, the standard mysql_* functions do not provide functionality for prepared statements.
来源:https://stackoverflow.com/questions/11089862/prepared-statements-possible-when-mysqli-and-pdo-are-not-available