About 7,780,000 results
Open links in new tab
  1. How to get data from database in javascript based on the value …

    Jun 14, 2012 · In my web application, I want to retrieve data from database based on the value that is passed to the function. I wrote the query as follows. //Functions to open database and …

  2. AJAX Database Example - W3Schools

    AJAX can be used for interactive communication with a database. The following example will demonstrate how a web page can fetch information from a database with AJAX: Customer info …

  3. How to Display Data from Database Using JavaScript

    Mar 17, 2025 · To display data from a database in a web application, you first need to establish a connection between your frontend code (written in JavaScript) and the backend database. …

  4. How to Connect to Database in Javascript (Simple Examples)

    Jul 3, 2023 · In NodeJS (server-side Javascript), we can easily connect to a database using the respective database module. So just how exactly do we connect to the database in the above …

  5. Get data from database using AJAX, Javascript, PHP, MySQL

    Dec 23, 2023 · By the end of this tutorial, you will be able to get data from database using AJAX using simple Javascript (no jQuery). Benefits of using AJAX are: Page loads faster as there …

  6. How to Run a Database Query in a JS File? - GeeksforGeeks

    Nov 12, 2024 · Use Node.js to run database queries from a JavaScript file. Choose a database package compatible with your database system (e.g., mysql2 for MySQL, pg for PostgreSQL). …

  7. Working with Databases in JavaScript: SQL and NoSQL

    Nov 3, 2023 · JavaScript can communicate with NoSQL databases using dedicated libraries and drivers. For this example, let's use SQLite, a lightweight SQL database. First, install the sqlite3 …

  8. How To Fetch Data From Database In JavaScript Using Ajax

    Mar 11, 2024 · In javascript we achieve this by ajax. Ajax has XMLHttpRequest object to communicate with servers. It can send and receive information in various formats including …

  9. Retrieving Data from a Database in JavaScript

    Aug 6, 2023 · By retrieving data from a database, JavaScript enables us to create interactive and responsive web applications that can fetch and display data on demand.

  10. How to fetch data from a database using Node.js - Fauna

    May 27, 2021 · Because every database is different, the syntax for fetching data from a database will depend on the specific database. The first thing you need to do is install Node.js and pick …

  11. Some results have been removed
Refresh