?
Solved

PHP Reporting System

Posted on 2010-03-30
4
Medium Priority
?
473 Views
Last Modified: 2013-12-12
Hi All,

I'm in the process of building a PHP-based reporting system. I've previously did so easily with ASP.NET's Reporting Services. I was wondering if PHP does have any sort of similar frameworks that I can take advantage of for this purpose?

--
Thks.
0
Comment
Question by:chongchian
  • 2
4 Comments
 
LVL 13

Expert Comment

by:themrrobert
ID: 29123786
You have to be more specific. We are NOT mind readers. While we are extremely smart and appear to read minds, we have NO idea what you are trying to report.

If you want to make reports of sql tables, do it yourself. I'm sure you can find them on google if you really want to.

SELECT * FROM `table` WHERE 1 ORDER BY `time` SORT DESC

use PEAR::DB or MDB2 and then:

$db->setFetchMode(DB_FETCHMODE_ASSOC);
$ret = $db->getAll($sql);

$hs = $row[0];
$header_html = ''; //generate headers \/
foreach($hs as $k=>$v) {
$header_html .= "<th>$k</th>";
}

foreach($ret as $row) {
$html .= "<tr>";
foreach($row as $k => $v )
{
$html .= "<td>$v</td>";
}
$html .= "</tr>";
}

$html = "<table><tr>${header_html}</tr>$html</table>";

echo $html;

BAM report done

0
 

Author Comment

by:chongchian
ID: 29139851
Hi themrrobert, thank you for your advice and rapid feedback, which I am gateful for . :)

Basically, I've a database of info and couple select scripts, from which, I would be required to make use of PHP to allow others to view those info via the browser.

This is really simple if I were to make use of the mysql_connect, mysql_select_db and mysql_fetch_row.

However, what I hope to do is to make it really rich like even AJAX enabled and having the ability to export it to PDF, Excel, etc.
0
 
LVL 8

Accepted Solution

by:
kumaranmca earned 2000 total points
ID: 29169879
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
This article discusses four methods for overlaying images in a container on a web page
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

588 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question