Training, Open Source computer languages

PerlPythonMySQLTclRubyC & C++LuaJavaTomcatPHPhttpdLinux

Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Hiding a MySQL database behind a web page

"Keep the browser simple - with a single route in (http) to a server." That's the philosophy behind the web and one of the things that's made it a huge success. It means that a straightforward browser can contact a single server, and Joe Public, Joan Whiting and Mahatma Ali can all view content. But that means that the complexity of storing and accessing data has to be dealt with on the web server, and the straightforwardness of the browser interface is counterbalanced by some quite complex server side systems. It makes sense, really - for every 1000 browsers there might be one server, and it's far better to have one complicated system that a thousand.

Yesterday afternoon, I put together a demonstration showing these various server side elements. A browser, contacting a web server. And then, behind the scenes, the web server running a Perl program via the CGI interface, and that Perl program in turn contacting a MySQL database server for the actual data. And another couple of sample programs (at the proof of concept level) to add more data to the tables. It's rather a long demo so that - rather than post it all here - I've put a full description in our solution centre here and I've put all the source files here. You can even try out the general display page, the Add Operation Page and the Add Patient pages ... although (for server security) I've commented out the line that would save your additions to the tables on our live server I'm not going to risk people entering patients who's names read like adverts!


The demonstration uses the example of medical patients and the operations that have had in two MySQL tables, joined to produce the final results, but the same principles would apply to estate agents selling houses, and to railway trains making station stops!

(written 2008-11-15 13:32:53)

 
Associated topics are indexed under
P308 - Using SQL Databases from Perl
P420 - SQL databases from a browser via Perl and CGI
S156 - Interfacing Applications to MySQL Databases

Back to
Recession? Depression?
Previous and next
or
Horse's mouth home
Forward to
Keys to friendless churches
Some other Articles
Ruby mixins, modules, require and include
Find the link
Ruby Programming Course - Saturday and Sunday
Keys to friendless churches
Hiding a MySQL database behind a web page
Recession? Depression?
Spa Road Garage and Convenience Store, Melksham
Wiltshire Council says - part 2
Wiltshire Council says - part 1
Melksham Chamber of Commerce, or the FSB
1975 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

© WELL HOUSE CONSULTANTS LTD., 2009: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho