Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Database in JavaScript

var database = 
{
     "data" :

           [
               {"Id" : 1 , "Name" :  "John Doe" , "Email" : "johndoe@gmail.com" , "Phone" : *********** , "Department" : IT , Admission_Date: "1-1-2022"}
           ]
}

document.write("<tr>")
document.write("<td> + database.data[i].Id + "</td>")
document.write("<td> + database.data[i].Name + "</td>")
document.write("<td> + database.data[i].Email + "</td>")
document.write("<td> + database.data[i].Phone + "</td>")
document.write("<td> + database.data[i].Department + "</td>")
document.write("<td> + database.data[i].Admission_Date + "</td>")
document.write("</tr>")

if(database.data.length == 0)
{
   document.getElementById("table").style.display = "none";
}


NOTE: Please Upvote my Answer!
Comment

database for javascript

/* Sqlite, MySQL, SQL */

const sqlite3 = require('sqlite3').verbose();
let db = new sqlite3.Database('DataBase');

let db = new sqlite3.Database('DataBase', (err) => {
  if (err) { return console.error(err.message); }
  console.log('Connected to the in-memory SQlite database.');
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: what is after.js 
Javascript :: react usememo 
Javascript :: chrome dino game 
Javascript :: jquery add attribute without value 
Javascript :: remove object from array of object 
Javascript :: jquery get textarea value 
Javascript :: nodejs s3 list objects from folder 
Javascript :: join in javascript 
Javascript :: order by mongodb 
Javascript :: hashing passwords with bcrypt 
Javascript :: angular.fromJson 
Javascript :: react select error handle 
Javascript :: for each array 
Javascript :: javascript color green to red 
Javascript :: Country API JavaScript Code 
Javascript :: call a function of another component vue 
Javascript :: javascript check if length is greater than 0 
Javascript :: === javascript 
Javascript :: node js file dowload progress bar 
Javascript :: angular local storage ionic 
Javascript :: highlight nav menu on scroll with javascript 
Javascript :: how to split by words and punctuation in javascript 
Javascript :: JavaScript array to URL params 
Javascript :: setstate in react 
Javascript :: react navbar material ui 
Javascript :: Prisma where in array 
Javascript :: js number padding to number of characters 
Javascript :: javascript trim text 
Javascript :: create video playlist using jquery 
Javascript :: javascript add query string to url 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =