我正在开发一个CMS,但我被卡住了。例如,如果我使用以下代码db_conn.php创建一个文件:
private $host = "$field = $_POST['host_db'];"
private $user = "$field = $_POST['username_db'];"
private $password = "$field = $_POST ['db_password'];"
private $dbname = "$field = $_POST['name_db'];"
然后将其连接到各个字段 我能这样做吗?