PHP - MySQL-表不存在

时间:2021-09-21 22:17:31

I have created a table using PHP. When I go to access that table, I get the error -table doesn't exist. I have given all permissions from to the user when creating table. table name is in small letters and if I run the query on local machine it works properly. I think it is a permissions issue but am unable to sort it out.

我用PHP创建了一个表。当我去访问该表时,我得到错误表不存在。我在创建表时已经向用户授予了所有权限。表名是小写字母,如果我在本地计算机上运行查询,它可以正常工作。我认为这是一个权限问题,但我无法解决它。

1 个解决方案

#1


0  

try adding some error handling:

尝试添加一些错误处理:

 $rsLogin = mysql_query($loginQuery, $connect) or die(mysql_error());

#1


0  

try adding some error handling:

尝试添加一些错误处理:

 $rsLogin = mysql_query($loginQuery, $connect) or die(mysql_error());