質問

I write a simply query, work fine on phpmyadmin but if I run the same query in my php script with pdo no error was return and after few seconds db do a (I presume) rollback canceling my update

The query:

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' 
役に立ちましたか?

解決

You miss a whitspace on your query, try this one

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'

他のヒント

Check that your database connection is actually being opened successfully and that the user you are connecting to the database as has permission to update that table.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top