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? Link to comment https://forums.phpfreaks.com/topic/29593-newb-problems-with-mysql_query/ 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] Link to comment https://forums.phpfreaks.com/topic/29593-newb-problems-with-mysql_query/#findComment-135799 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. Link to comment https://forums.phpfreaks.com/topic/29593-newb-problems-with-mysql_query/#findComment-135808 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.