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