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 :: react-dropzone-uploader 
Javascript :: use node modules in next.js 
Javascript :: firebase timestamp to date react 
Javascript :: json.stringify file object return {} 
Javascript :: what is promise in javascript 
Javascript :: angular loop through array 
Javascript :: req.header express.js 
Javascript :: return the sum of an array 
Javascript :: javascript syntax of throw statement 
Javascript :: Array of indexOf 
Javascript :: quiz javascript 
Javascript :: if is a string javascript 
Javascript :: how to make a quiz in javascript 
Javascript :: express router 
Javascript :: html form action javascript method 
Javascript :: populate in mongoose 
Javascript :: postgresql json array contains 
Javascript :: asyncio.sleep in javascript 
Javascript :: callback in javascript 
Javascript :: /function 
Javascript :: .default in javascript 
Javascript :: Expected an assignment or function call and instead saw an expression 
Javascript :: express request url ignores hash 
Javascript :: redux if already exist item dont add to array 
Javascript :: javascript nested objects 
Javascript :: alert on right click jquery 
Javascript :: angular chart js Doughnut colors 
Javascript :: nestjs test db 
Javascript :: formatar data com jquery 
Javascript :: angular routing example 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =