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

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
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