Click here to Skip to main content
15,887,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a web site written in HTML, with pages generated from an SQL database on my PC, which I then upload using FileZilla. This has the advantage that pages load rapidly in a Web browser since the pages are static and no database queries are needed.

I want (as an exercise) to create the same web site but dynamically at runtime. For example, one page contains a list of items. The list of items is generated from the database using an SQL query. The user clicks on an item, and it takes them to a page describing the item with photos. The page is automatically generated from the database using an SQL query.

Two questions:

1) I want to use HTML5, CSS and JavaScript. Which technology do I use for the SQL queries and formatting the results in HTML?

2) At present I use an Sqlite database. I want to transfer to a proper multiuser database such as SqlServer. Is there a good free relational database I can use? My web site is currently hosted on a Linux server, although I can change to a Windows server if that makes any difference.

What I have tried:

I haven't tried anything yet, I need to know the technology to use!
Posted
Updated 13-Dec-20 23:48pm

Quote:
1) I want to use HTML5, CSS and JavaScript. Which technology do I use for the SQL queries and formatting the results in HTML?

Basically, you need to generate pages on fly on server side, you need to master a language to make the link between your database and the html pages.
PHP is a common answer to this task
you can get started here: PHP Tutorial[^]
The whole site is a tutorial about web techniques: W3Schools Online Web Tutorials[^]
 
Share this answer
 
In case anyone has the same question, I ended up using Asp.Net Core, and this is what I recommend for anyone like me with WPF experience. The markup is HTML with embedded C# code that can read and write to databases and generate mark up quite easily. And it is type checked. It's powerful and easy to learn.
 
Share this answer
 
You can't unfortunately. You'll need to learn some kind of server-side technology that runs on the server which can access a database and return html to the client. If you want to move to Microsoft and SQL Server I'd suggest looking into asp.net and MVC.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900