report generation using php and mysql


I have created a table empl for i need to know how to make a report format of the details of the employes and enable a print of the same.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

It would be a long story, including php scripting and formatting. May be you should learn something about php scripting with mysql first?
Cornelia YoderArtistCommented:
UmeshSenior Principal Technical Support EngineerCommented:
If its a one time requirement and then its very simple..  But if you want a tool which generates report then Pls go for any reporting tools suggested in prev comments.... also search for Open Source free reporting tools if you wnat to go for Free reporting tools

I assume that you have a web server running and it supports php.

1. Create a php page which connects MySQL server and pulls the data from the table emp
2. Make use of below java script snippet to print the current page(should be in <head> of the current page)

<script language="Javascript1.2">
var message = "Print this Page";
function printpage() {
document.write("<form><input type=button "
+"value=\""+message+"\" onClick=\"printpage()\"></form>");

Open in new window

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
whspiderAuthor Commented:
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

From novice to tech pro — start learning today.