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 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 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 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 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 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 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.