Skip to content

Extract informations from your Joomla database and display them in a raw table; allowing to quickly connect that table into a spreadsheet program (like MS Excel)

License

Notifications You must be signed in to change notification settings

cavo789/joomla_show_table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Show table

Joomla 5.1 PHP 8.2.18

Show table

Sometimes you've the need to extract informations from your Joomla's database like f.i. the list of users, articles, ...

Are you French speaking ? Lire la description de show_table en Français

Sometimes you've the need to extract information's from your Joomla's database like f.i. the list of users, articles, ...

Recently my need was to extract quickly the list of my customers i.e.

  • Personal information's like LastName, FirstName, Address, City, Country, ...
  • Company information like the name of the customer's firm, his VAT number, ...
  • The bought product (which version, with or without support), ...
  • The paid price (netto, gross, paid VAT, currency, ...)

The need was also to make that list available in my spreadsheet software : create a worksheet with, as Data Source, a dynamic table. By refreshing the worksheet, the spreadsheet software run the URL, get a newer version of the list and update the sheet.
And the magic is there.

This script, show_table.php, allow this.

Use it

To make this script yours :

  1. Download and copy the script on your Joomla website. Put the script in the root folder of the site or in a subfolder.
    1. Get a raw version of the script : click on the raw button or go to this URL : https://raw.githubusercontent.com/cavo789/joomla_log_admin/show_table.php
    2. On your computer, start a text editor like Notepad or Notepad++ and copy/paste there the code
    3. Save the file (if you're using Notepad++, check in the Encoding menu that you've selected UTF8 NoBom as encoding)
    4. Put the saved file in your Joomla's root folder (you can store the script in a subfolder but you'll then need to update the ROOTconstant in the php code)
  2. Edit the show_table.php file and change the SQL : write your own. If the script has been stored in an another folder than the Joomla root folder, update the value of the constant
  3. If you wish, change the password : get a newer md5 hash.
  4. Save the file

Run it

Start a browser and run the file.

You'll need to provide the password. By default, it's Joomla so use an URL like this one : https://yoursite/show_table.php?password=Joomla

Note: take a look to the users.php which is a simplified and ready-to-use version for getting the list of your Joomla's users.

To get a RAW output

https://yoursite/show_table.php?password=Joomla&format=RAW

To get a HTML output

https://yoursite/show_table.php?password=Joomla&format=HTML

Images

HTML output with filtering and column sortering

Sample

Creation of a data connection in Excel

Worksheet

Then, in Excel, refresh the list to get the latest version of your data

Refresh

Also read

Make sure to read my blog post at https://www.avonture.be/blog/joomla-show-table.

License

MIT

About

Extract informations from your Joomla database and display them in a raw table; allowing to quickly connect that table into a spreadsheet program (like MS Excel)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages