HCProfessionals Posted March 17, 2011 Share Posted March 17, 2011 mysql_query("UPDATE categories SET active=0 WHERE id=$id"); What am I doing wrong here to get: Parse error: syntax error, unexpected T_STRING ??? Quote Link to comment https://forums.phpfreaks.com/topic/230949-what-am-i-doing-wrong/ Share on other sites More sharing options...
litebearer Posted March 17, 2011 Share Posted March 17, 2011 try... mysql_query("UPDATE categories SET active=0 WHERE id='$id'"); Quote Link to comment https://forums.phpfreaks.com/topic/230949-what-am-i-doing-wrong/#findComment-1188826 Share on other sites More sharing options...
WriteGreatCode Posted March 17, 2011 Share Posted March 17, 2011 http://www.knowledgesutra.com/forums/topic/6031-what-is-a-t-string/ Quote Link to comment https://forums.phpfreaks.com/topic/230949-what-am-i-doing-wrong/#findComment-1188827 Share on other sites More sharing options...
HCProfessionals Posted March 17, 2011 Author Share Posted March 17, 2011 try... mysql_query("UPDATE categories SET active=0 WHERE id='$id'"); Nope, still hates me. Quote Link to comment https://forums.phpfreaks.com/topic/230949-what-am-i-doing-wrong/#findComment-1188833 Share on other sites More sharing options...
kenrbnsn Posted March 17, 2011 Share Posted March 17, 2011 Please post a few lines before this one. Ken Quote Link to comment https://forums.phpfreaks.com/topic/230949-what-am-i-doing-wrong/#findComment-1188835 Share on other sites More sharing options...
HCProfessionals Posted March 17, 2011 Author Share Posted March 17, 2011 I got it Missed a ; on the line before, lol! Quote Link to comment https://forums.phpfreaks.com/topic/230949-what-am-i-doing-wrong/#findComment-1188844 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.