PHP Classes

File: samplereport.php

Recommend this page to a friend!
  Classes of Rajesh Kakkad  >  PHP MySQLi Bootstrap Reports  >  samplereport.php  >  Download  
File: samplereport.php
Role: Example script
Content type: text/plain
Description: Sample report example file
Class: PHP MySQLi Bootstrap Reports
Display results of database queries with Bootstrap
Author: By
Last change: removed confusing option
Date: 5 years ago
Size: 1,165 bytes


Class file image Download
<!DOCTYPE html>
<title>My Report</title>
    <meta charset="utf-8">
<? include "addbslocal.php" ?>
$rpt = new phpReport();
$rpt->width = "95%";
$rpt->header_color = "#4477ff";
$rpt->body_alignment = "left";
$rpt->body_color = "#ffeeee";
$rpt->body_textcolor = "#991199";
$rpt->covered = '1';
$rpt->title = "SMS Groups";
$rpt->footer="Generated on :".date("d-M-Y");

$con = mysqli_connect("localhost","my_user","my_password","my_db");
//use above code with your database details or include connection file db2.php
//change its values to match your database

//include "db2.php"; //code which makes mysqli connection

include "addjqlocal.php";
'<div class="firstdiv" align="center">';
$res = mysqli_query($con,"select * from msgq");
$rpt->mysqli_res = $res;