I am using CakePHP 2.3.6. Everything works fine on localhost, but when I upload to the server, the custom query in the controller's function throws an error saying "table not found". However, the table does exist.
The database is created in such a manner that I don't have any other way than using a custom query. Any help appreciated.
Database Error
Error: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'kidzo_v3.Children' doesn't exist
Query:
Insert into Children(Birthdate,Gender,User_id)
values('1997-11-16','male','14121');
原来是我在自定义查询中使用了大写字母的名称:(
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.