The Big Spring Sale! Up to 50% off!

Can a database be inserted in an HTML website?

joni2
6 Posts
joni2 posted this 13 November 2019
Ask a Question

I'm developing an HTML website in Nicepage and the website needs to be able to have a database to view. Does anyone know if a database can be added to an HTML website using a section and inserting a code in the HTML or PHP option? I'm hoping there is a way to enter a code that will bring in the database so it can be viewed.

Or, would I have to export the website as a Wordpress file to be able to use a database on the site?

I've not worked in Wordpress so am not as familiar with the options but would learn if I can utilize a database.

Thanks!
Joan

I'm developing an HTML website in Nicepage and the website needs to be able to have a database to view. Does anyone know if a database can be added to an HTML website using a section and inserting a code in the HTML or PHP option? I'm hoping there is a way to enter a code that will bring in the database so it can be viewed. Or, would I have to export the website as a Wordpress file to be able to use a database on the site? I've not worked in Wordpress so am not as familiar with the options but would learn if I can utilize a database. Thanks! Joan
Vote to pay developers attention to this features or issue.
3 Replies
Order By: Standard | Newest
weblinker
20 Posts
weblinker posted this 14 November 2019

I'm developing an HTML website in Nicepage and the website needs to be able to have a database to view. Does anyone know if a database can be added to an HTML website using a section and inserting a code in the HTML or PHP option? I'm hoping there is a way to enter a code that will bring in the database so it can be viewed.

Or, would I have to export the website as a Wordpress file to be able to use a database on the site?

I've not worked in Wordpress so am not as familiar with the options but would learn if I can utilize a database.

Thanks!
Joan

In HTML page you can NOT connect a DB, a connection with a DB should be done with a PHP code (connection and query to the DB).

You can make HTML files with nicepage and then with php edit those files (remember to rename .php the .html files)

It should be work

> I'm developing an HTML website in Nicepage and the website needs to be able to have a database to view. Does anyone know if a database can be added to an HTML website using a section and inserting a code in the HTML or PHP option? I'm hoping there is a way to enter a code that will bring in the database so it can be viewed. > > Or, would I have to export the website as a Wordpress file to be able to use a database on the site? > > I've not worked in Wordpress so am not as familiar with the options but would learn if I can utilize a database. > > Thanks! > Joan In HTML page you can NOT connect a DB, a connection with a DB should be done with a PHP code (connection and query to the DB). You can make HTML files with nicepage and then with php edit those files (remember to rename .php the .html files) It should be work
Support Team
Support Team posted this 14 November 2019

Hi Joan,

Indeed, there is no way to use the PHP code in the plain HTML pages, so probably it will be easier to arrange using some CMS.

...................................................
Sincerely,
Hella
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi Joan, Indeed, there is no way to use the PHP code in the plain HTML pages, so probably it will be easier to arrange using some CMS. ................................................... Sincerely, Hella Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Doug G.
131 Posts
Doug G. posted this 14 November 2019

You may be able to embed custom javascript code to perform the requests if the server supports it. It would have to be added as a HTML object with tags in Nicepage if that option is available.

You may be able to embed custom javascript code to perform the requests if the server supports it. It would have to be added as a HTML object with tags in Nicepage if that option is available.
You must log in or register to leave comments