On Thursday, 28 May 2015 19:07:20 UTC-4, Cleber wrote:
Not from your original message.
CGI is an option, but so is using the QM Libraries. There are several ways to approach the problem.
Personally, I would make my website agnostic to the "back end" database by writing some middleware to handle HTTP requests between the website (or web page using ajax) and the database. The middleware would expose an "RESTful" API to the website and use your database libraries of choice to "talk" to the database.
[website/webpage] <--http/json/xml--> <--API--> [middleware] <--dbLib--> [database]
What you use for the language to write your middleware is pretty much up to you, but you would be best off writing it in something with good libraries for HTTP, JSON, and/or XML. Data exchange between the website (or web page using AJAX requests) and your middleware should use a common format such as JSON or XML, as these are the most common standards for data exchange.
There are several added benefits to this approach.
1) The "front end" isn't limited to a website or web page. Any "client" capable of HTTP requests could "talk" to your database via the API exposed by your middleware. This includes regular Windows programs, smartphones, tablets, etc.
2) The database can be swapped-out for a different vendor's and it makes no difference to your end-users. e.g. You could switch from QM to SQL Server and nothing on the development side of your website, or any other clients consuming your database services, would have to change.
3) You web server, middleware, and database do not have to reside on the same physical machine, or even the same physical network. This can be very handy if your website is being hosted by a service provider that would not allow you to install your own software or does not support your database of choice.
That's a general overview of my preferred approach. The technical details of implementing such an approach is beyond what I'm prepared to type out. It's been discussed here several times over the years here. Google is your friend. ;)
Regards,
--
Kevin Powick