首页 > 解决方案 > php sql密码问题中的大括号

问题描述

当我使用 php 和用户名和密码连接到 på 数据库时,它可以连接。但是由于一些奇怪的原因,我必须用两个大括号输入我的密码。如果我手动登录到数据库,它不会使用两个大括号登录。

Username = "xxxxx";
Password = "thisis(a}password"; //thisis(a}}password  --- this is not the password, but this password is the only one accepted?
sqlsrv_connect(...);

是否有某种我不知道的语法,因为我以前从未经历过这种情况。

标签: phpsqlpasswords

解决方案


推荐阅读