How to Use One Database Across Multiple Pages
In Div-idy, your database is shared across all pages in the same project automatically. That means you can create data on one page and display or edit it on another—without any extra setup.
Quick Answer
You don’t have to “connect” databases across pages in Div-idy. Your project database is automatically shared across every page inside the same project. Create or edit records using the Database tool (from your project page), then ask Div-idy to display or update that same data from any page in the project.
Pages only share a database if they are inside the same project. If you create a new project, that project has its own separate database.
How it works (simple explanation)
- Database is project-level. One project = one database.
- Every page in the project uses that same database.
- You can read/write from any page. Add data on Page A, list it on Page B, edit it on Page C.
Project: "My CRM"
Pages:
- /home (dashboard)
- /customers (list customers)
- /customer-detail (edit one customer)
All pages read/write the same project database automatically.
Step-by-step
Create (or open) a project
Go to your projects dashboard and open the project that will contain all your pages.
Open: /myaccount
Choose a project → Open it
Add data using the Database tool
From your project page, open the tool called Database. Add a few records so you can use them on multiple pages.
On your project page:
Open tool: Database
Create a collection/table (example: "customers")
Add a few records
Use the same data on another page
Create a second page (or open an existing page) and tell Div-idy to display the records from that same database.
Example prompt (on another page):
"Display all customers from the database collection 'customers' in a table.
Include name, email, and a button to open a details page for each record."
Edit the same records from a different page
Make a details page that loads one record and updates it. The record updates everywhere because it’s the same project database.
Example prompt (details page):
"Build a customer detail page that loads a customer by id from the URL,
shows an edit form (name/email/phone), and saves updates back to the database."
Prompt templates you can copy
Build a page that reads from the database collection "tasks"
and displays the tasks in a list. Add filters for status and a search box.
Each item should link to /task?id=RECORD_ID.
Build a form that creates a new record in the database collection "tasks"
with fields: title, description, status, dueDate. After saving, redirect to /tasks.
On this page, read the "id" query param, load that record from the database
collection "tasks", prefill a form, and allow updates + delete.
After delete, redirect to /tasks.
Troubleshooting
- “My data isn’t showing on another page.” Make sure both pages are inside the same project.
- “It’s showing empty.” Confirm you created records in the Database tool and you’re using the correct collection/table name.
- “I want separate databases.” Create separate projects (each project has its own database).