PHP Reporting System

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.
chongchianAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

themrrobertCommented:
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
chongchianAuthor Commented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.