473,486 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PHP Reports

ddtpmyra
333 Contributor
Hi,

Anybody who can recommend a best freeware reporting tool for PHP? A user friendly or easy to develop.

thanks!
Feb 3 '09 #1
10 1919
Dormilich
8,658 Recognized Expert Moderator Expert
what do you mean by "reporting tool"?
Feb 3 '09 #2
ddtpmyra
333 Contributor
Hi Dormilich,
Im looking for a web base reporting tool where the user can dowloaded or run the result of the queries.
Feb 4 '09 #3
Dormilich
8,658 Recognized Expert Moderator Expert
what queries? I still can't figure it out.
Feb 4 '09 #4
TheServant
1,168 Recognized Expert Top Contributor
So using queries (presume MySQL or SQL queries) to generate a document displaying figures/statistics?

You said PHP but I'm not sure what you need to report on with PHP? Please give a better explanation, aswell as an example of what you wnat it to do.
Feb 4 '09 #5
ddtpmyra
333 Contributor
Yes, I'll be using MYSQL as the database and the website will be created in PHP. Im looking for a reporting tool will help me to build these reports that will be posted on a website and can be dowload by the users
Feb 5 '09 #6
TheServant
1,168 Recognized Expert Top Contributor
What does the report contain? Is it information stored in MySQL, server status, text from you, etc...

Most things like that you can just write on your own and you don't really need a "reporting tool".

Do you want your output in html, word doc, pdf, etc.?
Feb 5 '09 #7
ddtpmyra
333 Contributor
Yes, can be download on a excel or pdf format
Feb 6 '09 #8
TheServant
1,168 Recognized Expert Top Contributor
This is my last reply. Please tell us what the report will contain. Stuff from inside a database, server information or just text? If you do not explain yourself clearly you will not get any help. We're not here to figure out what your problem is AND solve it. We're here to give advice for clearly defined specific problems you are having.
Feb 8 '09 #9
ddtpmyra
333 Contributor
I thought I gave enough information already... stating MYSQL is the database and output can be downloaded on pdf or excel format. And Im just asking for suggestion how to do this.
Feb 9 '09 #10
mageswar005
72 New Member
@ddtpmyra
i think the below code may help you.the below code can be used to export the
datas from mysql to excelsheet export format.

Expand|Select|Wrap|Line Numbers
  1. <?
  2. // Connect database. 
  3. mysql_connect("localhost","","");
  4. mysql_select_db("tutorial");
  5.  
  6. // Get data records from table. 
  7. $result=mysql_query("select * from name_list order by id asc");
  8.  
  9. // Functions for export to excel.
  10. function xlsBOF() { 
  11. echo pack("ssssss", 0x809, 0x8, 0x0, 0x10, 0x0, 0x0); 
  12. return; 
  13. function xlsEOF() { 
  14. echo pack("ss", 0x0A, 0x00); 
  15. return; 
  16. function xlsWriteNumber($Row, $Col, $Value) { 
  17. echo pack("sssss", 0x203, 14, $Row, $Col, 0x0); 
  18. echo pack("d", $Value); 
  19. return; 
  20. function xlsWriteLabel($Row, $Col, $Value ) { 
  21. $L = strlen($Value); 
  22. echo pack("ssssss", 0x204, 8 + $L, $Row, $Col, 0x0, $L); 
  23. echo $Value; 
  24. return; 
  25. header("Pragma: public");
  26. header("Expires: 0");
  27. header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); 
  28. header("Content-Type: application/force-download");
  29. header("Content-Type: application/octet-stream");
  30. header("Content-Type: application/download");;
  31. header("Content-Disposition: attachment;filename=orderlist.xls "); 
  32. header("Content-Transfer-Encoding: binary ");
  33.  
  34. xlsBOF();
  35.  
  36. /*
  37. Make a top line on your excel sheet at line 1 (starting at 0).
  38. The first number is the row number and the second number is the column, both are start at '0'
  39. */
  40.  
  41. xlsWriteLabel(0,0,"List of car company.");
  42.  
  43. // Make column labels. (at line 3)
  44. xlsWriteLabel(2,0,"No.");
  45. xlsWriteLabel(2,1,"Company");
  46.  
  47. $xlsRow = 3;
  48.  
  49. // Put data records from mysql by while loop.
  50. while($row=mysql_fetch_array($result)){
  51.  
  52. xlsWriteNumber($xlsRow,0,$row['id']);
  53. xlsWriteLabel($xlsRow,1,$row['name']);
  54.  
  55. $xlsRow++;
  56. xlsEOF();
  57. exit();
  58. ?>
  59.  
  60.  
Feb 13 '09 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2995
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields...
2
5752
by: Andrew | last post by:
Hi there: I can successfully control a report's GroupLevel ControlSource property by using: ..Reports!rptEESTMT_A.GroupLevel(i).ControlSource = "CorpName" where rptEESTMT_A is the actual...
0
2236
by: Ian | last post by:
(Sorry if I have repeated this, it did not appear the first time) I have the following code on a button. The idea is that when this button is clicked it prints several reports automatically then...
3
6882
by: Gheaci Maschl | last post by:
Hi all! I would like to have your opinion about my problem and my proposal how to solve it: Ingredients: - BTriev database - Crystal Reports - maybe MS Access - Liinos6 (small ERP software)
1
2125
by: KEVIN97810 | last post by:
Hello to all, I am trying to fill all my reports in a listbox but I may not need to show other reports. How do you modify this function to do that. I have losts of reports but don't want to...
2
3247
by: B.Newman | last post by:
I've got some VB.NET code that *should* get a list of reports from an Access MDB and populate a list box with them. It doesn't detect any of the reports at all. oAccess.Reports.Count comes up as...
3
8907
by: VMI | last post by:
I know this may not be the best NG for this, but I feel you guys know more about this than any of the other NGs. I need to build several simple reports (over 50 of them and they get their data...
12
2498
by: Tony Ciconte | last post by:
We are evaluating the prospect of integrating and/or using Crystal Reports with some of our current products. Some of these are still in Access 97 and are running well. Since we cannot include the...
16
6485
by: JoeW | last post by:
I'm utilizing a database that I created within MS Access within a program I've created in VB.NET. I am using the VB front end to navigate the information, but want to be able to print a report,...
3
5106
by: joelpollock | last post by:
I'm having trouble continuously page numbering a large report in MS Access. The report is made up of three separate Access reports which I join together at the end. In the past I have opened the...
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.