非法字符串偏移量';服务器名';在C:wamp\www\report\index.php中,第234行

非法字符串偏移量';服务器名';在C:wamp\www\report\index.php中,第234行,php,mysql,wampserver,Php,Mysql,Wampserver,我正在尝试使用php中的wampserver执行下面的查询 $query = "SELECT Servername,IPAddress,LiveStatus, Location,BranchType,Entity FROM t_applicationstatus Where Entity='BAGI'"; $result=mysqli_query($con,$query); 它给了我上面的错误。它不喜欢Serve

我正在尝试使用php中的wampserver执行下面的查询

$query = "SELECT Servername,IPAddress,LiveStatus,
                 Location,BranchType,Entity 
          FROM t_applicationstatus 
          Where Entity='BAGI'";


$result=mysqli_query($con,$query);

它给了我上面的错误。

它不喜欢Servername可能是其他地方声明的值。
该错误通常与数组关联

在字段名周围加上重音符号(`),以将其作为列进行区分

你能把
t_applicationstatus
的表结构发布到哪里取行吗?请再显示一些代码。