Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

169
Vistas
can you change the local dexie DB values of null to just a string with no value

so i update my dexie db with my sql db, but the problem is that some of the values are empty

THE PROBLEM IS THAT WHEN I WANT TO PRINT THE VALUE IN PHP IT PRINTS ALL THE VALUES AND THE ONES WHICH ARE ""null"".... how do i fix this??

i am using datatables and i have a few columns which are linked and i still need to see that lets say the fuel col has nothing "" but it musnt show null

db.fuel.put({                        
  department: data[i].department
});
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

this checks if the value coming from mysql is null then directly changes it to an empty string

            url: 'fuel_fetch_null',
            headers: { 'X-Requested-With': 'XMLHttpRequest' },
            success: function(data) {
                //fuel
                db = db_open();
                data = JSON.parse(data);
                var  datas = data.data;


                for (i in datas) {
                    if(datas[i].department == null){
                        datas[i].department = '';
                    }
                     db.fuel.put({
                        id: datas[i].id,
                        department: datas[i].department
                    });
                }
            }
        });
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda