PHP Classes

not working

Recommend this page to a friend!

      PHP MySQLi Report Generator class  >  All threads  >  not working  >  (Un) Subscribe thread alerts  
Subject:not working
Summary:I copied example file and made changes and checked, but php show
Messages:2
Author:Saurabh Gayali
Date:2016-11-02 07:27:44
 

  1. not working   Reply   Report abuse  
Picture of Saurabh Gayali Saurabh Gayali - 2016-11-02 07:27:44
I copied example file and made changes and checked, but php shows differently.

output


width = "100%"; $prg->cellpad = "0"; $prg->cellspace = "0"; $prg->border = "0"; $prg->header_color = "#666666"; $prg->header_textcolor="#FFFFFF"; $prg->body_alignment = "left"; $prg->body_color = "#CCCCCC"; $prg->body_textcolor = "#800022"; $prg->surrounded = '1'; $res = mysqli_query($con,"select * from blast"); $prg->mysqli_resource = $res; $prg->title = "Test Table"; $prg->generateReport(); ?>

  2. Re: not working   Reply   Report abuse  
Picture of Rajesh Kakkad Rajesh Kakkad - 2016-11-04 17:55:32 - In reply to message 1 from Saurabh Gayali
Looks like you might have missed php opening tags. it shows raw php code that means your page is presented by your server as HTML and not php page.

Functions on the page are not processed. Make sure your php page starts strictly with "<?" and php code is seen correctly in your php editor you use.

Good luck.