Kyuukei Posted August 19, 2009 Share Posted August 19, 2009 { global $db_prefix, $ID_MEMBER, $item_info; db_query(" UPDATE {$db_prefix}themes SET value = value + {$item_info[1]} WHERE ID_MEMBER = {$ID_MEMBER}", __FILE__, __LINE__); return 'Successfully added ' . $item_info[1] . ' to agility!'; } Basically I'm trying to set the value of a variable in the themes database to a number selected by me when I create an item but when I use value it sets all the fields in themes (that are custom made). How do I make it change a specific one? (etc I want to change just the Agility variable in the datebase) Link to comment https://forums.phpfreaks.com/topic/171061-a-bit-of-coding-help-with-smf/ Share on other sites More sharing options...
.josh Posted August 20, 2009 Share Posted August 20, 2009 you'd probably have better luck asking on the SMF boards... Link to comment https://forums.phpfreaks.com/topic/171061-a-bit-of-coding-help-with-smf/#findComment-902216 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.