counterbeing Posted December 6, 2006 Share Posted December 6, 2006 [code] mysql_query('UPDATE `images` SET `group` = \'misc.\' WHERE `group`=\'$del\''); [/code]I've been looking over my code and determined that this is the line that is not working. Things don't seem to make sense sometimes when things are being inserted into a mysql_query. I assume it must have to do with my variable. Just before this code I am editing things in the same database but a different table, so I am definately connected properly...Any help is always appreciated. Thanks.Also... can anyone point me to some simple rules regarding quotes inside queries? Quote Link to comment Share on other sites More sharing options...
fert Posted December 6, 2006 Share Posted December 6, 2006 try this[code]@mysql_query("UPDATE `images` SET `group` = 'misc.' WHERE `group`='$del'") or die(mysql_error()); [/code] Quote Link to comment Share on other sites More sharing options...
counterbeing Posted December 6, 2006 Author Share Posted December 6, 2006 You pretty much rock. Thanks.Is the "@" symbol a good idea? I've heard you should never have to use it.Thanks. 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.