Skip to content
Advertisement

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

JavaScript

Advertisement

Answer

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

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement