PHP 7.4+
MySQL MariaDB
No Code
Status Active

In this tutorial, we will show you how to use Smart Report Maker to create professional reports based on SQL queries or database views stored in any MySQL database.  Smart Report Maker allows you to transform raw database data into well-formatted, interactive reports in just a few steps—without writing code.

Step 1: Launch the Report Generator Wizard

First, click the Create New Report button to launch the report generator wizard. This wizard will guide you through the entire report creation process step by step.

Step 2: Enter Database Connection Details

  • Next, enter the connection parameters of your MySQL database. Once the connection is successful, you can choose the data source for your report.
  • To build a report using a SQL query or a database view, select SQL Query as the data source.

Step 3: Choose a View or Write a SQL Query

You will see:

  1. A dropdown list containing all views stored in your database (if any exist).
  2. A text area where you can write a new SQL query.

Smart Report Maker | Selection of MYSQL views screen

Now do the following:

  1. Either select an existing view or write your SQL query.
    (Only SELECT queries   are allowed.)
  2. Click the Validate button.
  3. Click Next.

Step 4: Define Column Labels

Assign user-friendly labels to your database columns to make your report easier to read.

Smart Report Maker | Report Appearance Customization

Step 5: Set Cell Types and Conditional Formatting

Define the cell types for each column and apply conditional formatting. For more details, see this tutorial.

Step 6: Configure Grouping and Sorting

Define grouping levels and sorting order. For example, group sales by country, then by city.

Smart Report Maker | Grouping and sorting screen

Step 7: Set Security and Access Permissions

Choose who can access your report.

Smart Report Maker | Header and Footer customization screen.

Step 8: Final Report Settings

  1. Select the report style and layout.
  2. Set access permissions.
  3. Choose the interface language.
  4. Add a custom header and footer.
  5. Select a report category.

Conclusion

That’s it!
You can now convert any SQL query or database view into a professional MySQL report using Smart Report Maker.