building database with automatic report sending
Hi all,
I have started working for a small training provider. Apart from my tutor responsibilities, I help with the IT site. I was asked to look into a possibility of creating some database system. I know that what I'm going to describe can be done in PHP but my php skills are not that great (well, I know the basics only, LOL) so my question is whether you know of any product/ that would do the following: 1. Some tutors/assessors will input some student details on one of the subpages. The details of the form will be recorded in a database (this bit I could do myself) 2. Tutors/assessors should be able to view the database on one of the subpages (in a form of a table). Ideally there should be a possibility of exporting the table (and/or particular columns to an .xls file (I know, MS:( ) 3. At the end of the week the system should produce a report, ie. send an email containing certain rows of the table (based on the value of one of the columns) I hope it makes sense. I'd be more than happy to do it myself (especially that I'm slowly learning php) but the system should be up and running within 3-4 weeks and with my current php skills and lack of free time there's no way I could create a reliable and secure system within this timeframe. For that reason, I'd probably be looking at some ready-made solution out there. thank you. |
Don't overthink the simplicit of this task. Do this:
Set up cron job as a user such as root Code:
crontab -e The php functions for this are as follows: Code:
mysql_query Code:
php report.php (don't forget to put the * * *... for time intervals in cron - I'm on my phone so you'll have to lookup syntax |
Quote:
BTW, PHP is not the only choice. There's also Python (Django) and Ruby (on Rails). |
Quote:
Kevin Barry |
Please concentrate on validating the inputs since it will be used by others who dont know your thought process.
I would go with a sophisticated - free for production and not just development (but not open source) - DBMS (like Oracle Express or SQL Express) that allows back end validations and consistency checks in case your programme missed some checks, coupled with proven interfaces to PHP, and generic report writer and export options. The learning curve is not steep and with these features, you should be able to hit the ground running. If the mind balks at using billy boy's or bully boy's products, then mySql can be used but AFAIK, there is no free version. OK |
Thanks a lot for all your suggestions/advice.
It seems I'll probably have to create it after all. At least I'll learn something new, but no way I'm going to do it within 3 weeks. I've got other responsibilities at work as well. |
Quote:
|
Quote:
Kevin Barry |
Thanks a lot for your offer of help. I do appreciate it and might need it soon:)
|
Quote:
Otherwise, pg_query, pg_fetch_array, etc are really no big deal. |
Quote:
|
All times are GMT -5. The time now is 11:37 AM. |