Every PHP report has:
- A header which basically has the code for the connection settings (URL, USER, PASSWORD etc.) It is usually in the PHP file “header_report.php”
- Report Title
- Report Description
- Filters for selecting the parameters for the report (optional)
- Report Query and logic embedded in PHP tags
- HTML tags to format the output
The PHP reports are usually formatted using HTML tags. The records generated by the Query in the PHP report are formatted using HTML tables.
Commonly used HTML tags used in FAMIS PHP reports | DIV tag |
Commonly used PHP functions and the logic used in the reports: |
Include and Require |
“array_push” function | |
“execute” function | |
“die” function | |
“is_array()” function | |
Explode and Implode | |
Extract variable POST logic | |
The $_POST Variable | |
Query Formation | |
Query Execution | |
Initialization of variables in the report |