if (Tools::getValue('your_id1')) { $select1 = dB::getInstance()->getValue('SELECT select_bg_color FROM '._DB_PREFIX_.'custom_slider_lang WHERE id_customslider_slides = '.Tools::getValue('your_id1').' AND id_lang = '.$id_lang); $this->fields_value['select_bg_color'] = $select1; } else { $this->fields_value['select_bg_color'] = 'bg-new-colection-3'; }
Tools::getValue('your_id1') is your selected id_customslider_slides for edit.
$id_lang = context language id