【代码】 <?php $dbms = ‘mysql’; $host = ‘localhost’; $dbName = ‘testDB’; $user = …