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.
To make this script yours :
- Download and copy the script on your Joomla website. Put the script in the root folder of the site or in a subfolder.
- 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
- On your computer, start a text editor like Notepad or Notepad++ and copy/paste there the code
- Save the file (if you're using Notepad++, check in the Encoding menu that you've selected UTF8 NoBom as encoding)
- 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
ROOT
constant in the php code)
- 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 - If you wish, change the password : get a newer md5 hash.
- Save the file
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.
https://yoursite/show_table.php?password=Joomla&format=RAW
https://yoursite/show_table.php?password=Joomla&format=HTML
HTML output with filtering and column sortering
Creation of a data connection in Excel
Then, in Excel, refresh the list to get the latest version of your data
Make sure to read my blog post at https://www.avonture.be/blog/joomla-show-table.