This script uses a javascript table called simpledatatables.
window.addEventListener('DOMContentLoaded', event => {
// Simple-DataTables
// https://github.com/fiduswriter/Simple-DataTables/wiki

const datatablesSimple = document.getElementById('datatablesSimple');
if (datatablesSimple) {
new simpleDatatables.DataTable(datatablesSimple);
}
});



Example usage for creating a dynamic table with delete and edit hyperlinks. Please note, that the data is in the format expected from mysqli. I.E. array with number indexes and each element is an array with text indexes. These text indexes are used for the column headings.

JSTableEx::QuickWrite($aTemplates, 'id', Link::$rootWeb.'admin/site/templates/edit', Link::$rootWeb.'admin/site/templates/delete', 50);

Project Activity

See All Activity >

Follow PHP HTML Table

PHP HTML Table Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PHP HTML Table!

Additional Project Details

Registered

2022-06-20