public static function putInDB($nodeid, $userid, $choice) { $choice = customBackgroundChooser_sharedStatic::mysql_escape_mimic_fromPhpDoc($choice); customBackgroundChooser_sharedStatic::userDefaultItemDB($nodeid, $userid); $q = 'INSERT INTO kiror_background_chooser (uid,nid,chosen) VALUES (' . $userid . ', ' . $nodeid . ", '" . $choice . "');"; $dbc = XenForo_Application::get('db'); $dbc->query($q); }