$set['first_name'] = 'Joe'; $set['last_name'] = 'Smith'; ... $sql = "DATE_ADD(NOW(), INTERVAL (SELECT expiration_days FROM options_access WHERE access_id = $access_id) DAY)"; $set['expiration'] = "DB::expr($sql)"; $query = DB::insert('clients)->set($set); $query->execute();
It looks like you're new here. If you want to get involved, click one of these buttons!