Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Export data to excel/pdf file
Old 07-17-2009, 04:53 PM Export data to excel/pdf file
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
Okay I am working on a Web App for Dialysis patients to enter their nightly flow sheet information into so it can be sent to the hospital / clinic it needs to. The information is stored in a MySQL database across multiple tables since one treatment has a lot of data with it.

I already got the flowsheet template made up that just needs the data injected in to it.

This is the flowsheet of which I need to populate


My question is how do I fill it in with all the data and have it exported to XLS or PDF depending on user request. It would be emailed to them and I am not planning on storing a copy. Just load the template, fill it in, create pdf/xls from it, and email it.
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
 
Register now for full access!
Old 07-17-2009, 06:34 PM Re: Export data to excel/pdf file
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
First, I would not email it! Emails go through many servers before reaching their end target which allows the data to be stolen. Second, there are laws applying to medical data which you should be careful to adhere to. For example, storing the data on a shared server subjects it to being read by others with root access. Imagine if your dialysis info was for a major public figure... a lot of people would pay money to get that and might just find a server admin with fewer scruples who'd be happy to send the data along for a few thousand dollars. Even a managed, dedicated server could be risky (and potentially illegal).

If I were you, I'd create a webpage requiring login for the hospital/clinic to login to which would show the data on a secured webpage. Alternatively, you could look into encrypted emails, but most users have no idea how to configure their system to read encrypted emails (or even to generate the public/private key!).

Hopefully this helps you to solve your underlying problem even though I didn't answer your direct question.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 07-17-2009, 07:03 PM Re: Export data to excel/pdf file
NewBreed's Avatar
Extreme Talker

Posts: 223
Name: Johnny
Location: Washington
Trades: 0
Quote:
Originally Posted by JeremyMiller View Post
First, I would not email it! Emails go through many servers before reaching their end target which allows the data to be stolen.
Would you care to expound on how it's unsecure? Maybe provide a few keywords so one such as myself could research? Not that I don't believe you, but I like to do my own research before practicing/preaching such things.
__________________
"The only thing that interferes with my learning is my education." -Albert Einstein
NewBreed is offline
Reply With Quote
View Public Profile
 
Old 07-17-2009, 08:42 PM Re: Export data to excel/pdf file
JeremyMiller's Avatar
WT Moderator

Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades: 0
Check out http://luxsci.com/blog/the-case-for-email-security.html or http://blogs.techrepublic.com.com/security/?p=431 . However, just think about it for a short second and you'll see how it goes through at least 4 computers: Yours, your ISP's, the target recipient's ISP, and the target's computer. Each of those 4 (at a minimum) servers/computers provide weak points. Encrypt, however, and it's reduced down to 2.
__________________
Jeremy Miller

Please login or register to view this content. Registration is FREE
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 07-18-2009, 10:23 AM Re: Export data to excel/pdf file
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
The hospitals I deal with currently only accept email with either a pdf or xls attachment with the flow sheets. So that is why I was looking into having the email generated from my server so it only has 2-3 hops instead of 4 or more. I thought about making a clinic / hospital login and I am going to do that but a few of the centers do not want to log in, they just want the sheets emailed to one of their accounts.

What I need right now is how do I export the data to an xls or pdf file? And I do not want the file kept on the server, after it has been generated and emailed / download it needs to deleted from memory

~Back of topic and back to security~

This is the main company that will be using this and they have many centers all around the country. I am going to link you to their privacy policy page.
http://www.davita.com/about/company/?id=413
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Old 07-24-2009, 09:26 PM Re: Export data to excel/pdf file
amw_drizz's Avatar
Ultra Talker

Posts: 340
Name: Jon
Location: New York
Trades: 0
So no one can help me with an export to pdf / xls function??? Is it really that hard?
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
amw_drizz is offline
Reply With Quote
View Public Profile Visit amw_drizz's homepage!
 
Reply     « Reply to Export data to excel/pdf file
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.46936 seconds with 12 queries