Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Help w/ Web-Based DB

Help w/ Web-Based DB
Thread Tools
cgc
Professional Poster
Join Date: Mar 2003
Location: Down by the river
Status: Offline
Reply With Quote
May 7, 2012, 09:14 AM
 
I used to program long ago in Assembly, C, Pascal, and some other languages and took a 20 year hiatus. A couple years ago I wrote some VBA to get something done at work and got the programming fever again but the programming environment has changed a lot in the time I took off so I need some advice on getting starting with the right tools.

I think I have a few tasks to perform:

1. Web front-end w/ form(s) to allow a user to enter data and to display statistical analysis and charts of the saved data
2. User login to enter data daily or more often and to look at stats/charts as needed
3. SQL back-end to store and retrieve data

This is a fairly simple thing but I'm curious if the SQL/PHP combination is preferred over SQL/JS or something else. I like Python but have little experience other than some testing in CodeRunner... Are there any CMS-like systems for databases that can fast-track this?

Specifically, I will allow users to login, have some sort of user prefs with goals entered (e.g. run 10K in 50:00), enter date/run time/run distance/notes, then the application will do a few calculations (e.g. calculate intermediate distances as goals, trend analysis, pace calculation, etc.), draw chart, etc.

So what do you suggest as far as language, plan of attack (e.g. get forms working first then do SQL, then do user login/accounts, etc.)? How do I make it secure? Thanks.

BTW, I'm using a Linux-based web host with PHP 5.2.17 and MySQL 5.1.
     
hyteckit
Addicted to MacNN
Join Date: May 2001
Status: Offline
Reply With Quote
May 9, 2012, 01:03 AM
 
If you are just looking to manage databases with PHP, get phpMyAdmin.
Bush Tax Cuts == Job Killer
June 2001: 132,047,000 employed
June 2003: 129,839,000 employed
2.21 million jobs were LOST after 2 years of Bush Tax Cuts.
     
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 9, 2012, 01:55 AM
 
1) Choose an MVC PHP framework such as Laravel, CodeIgniter, etc. Choose one depending on how bleeding edge you want it to be and how well the documentation clicks with you. CodeIgniter is a pretty conservative and slow moving framework, but it has great documentation, a ton of users, and since your needs aren't that great it should definitely do everything you need.

2) Install the framework, setup your controller, controller functions, and HTML view for your form. You can create your database with phpMyAdmin, that works well.

3) Will this form require authentication, or will it be wide open to the whole world in allowing vistors to write to the database? If the latter, you should definitely learn about good security practices in designing this form, such as cross-site scripting prevention. If the form will send out email make sure that there is appropriate error checking, hard code the recipient's email address, etc.

4) Google Charts works well and it will probably cover your charts and graphs needs. You might want to look for a plugin/library/widget of some sort that will assist you with integration. I haven't used Google Charts much myself, so I'm making some assumptions here.

5) If you aren't much of a graphic designer you can pickup a decent webpage template at Website Templates | Web Templates
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 12:54 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,