php - Please check whether this SQL query is correct -
i trying update data in row of table specific user id. receiving syntax error. tell me what's wrong in syntax or miss ?
result of echo statement --->
update activitymeter set totaltimes = 4, tna_wd = 1, tnm_wd = 10, tna_we = 10, tnm_we = 10, mvpa_wd = 2, mvpa_we = 5, week_diff = -3, tailor_advice= weekday activity level below recommended levels looks though improved on weekend. user_id = 2227904 have error in sql syntax; check manual corresponds mysql server version right syntax use near 'weekday activity level below recommended levels looks though th' @ line 10
from above printed sql query, type of tailor_advice
field may text or varchar, value must put inside double quotes or single quotes.
Comments
Post a Comment