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 ??? 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'"); 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/ 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. 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 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! 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
Archived
This topic is now archived and is closed to further replies.