我写了一个简单的查询,在phpmyadmin
上正常工作但是如果我在我的php脚本中使用pdo运行相同的查询没有错误返回,几秒后db做一个(我推测)rollback取消我的更新< / p>
查询:
UPDATE tab SET whoweare = 'text 888', services = '', logo = '', copertina = '', galleria1 = '', galleria2 = '', galleria3 = '', galleria4 = '', indirizzo = 'input 1', tel_fisso = '', tel_mobile = '', orari = 'input 4', social_www = '', social_tw = '', social_fb = '', social_yt = '', social_lin = '' WHERE users_user='try'
答案 0 :(得分:-1)
你错过了查询的空格,试试这个
UPDATE tab SET whoweare = 'text 888', services = '', logo = '', copertina = '', galleria1 = '', galleria2 = '', galleria3 = '', galleria4 = '', indirizzo = 'input 1', tel_fisso = '', tel_mobile = '', orari = 'input 4', social_www = '', social_tw = '', social_fb = '', social_yt = '', social_lin = '' WHERE users_user='try'
答案 1 :(得分:-1)
检查您的数据库连接是否已成功打开,以及您要连接到数据库的用户是否有权更新该表。