0

How can I connect a html page with a database??

I need to connect html or javascript to a database but I don't know. How can I do it???

10th Oct 2017, 2:46 PM
Carlos Andrés
Carlos Andrés - avatar
6 Answers
+ 1
Is it a MYSQL database?
10th Oct 2017, 2:50 PM
ihateonions
+ 1
Well you could use PHP to connect to the database and run what ever queries you require. https://www.w3schools.com/php/php_mysql_connect.asp Once you have connected to the DB, you could include a php page which has an sql statement, SELECT * FROM table name Then echo out the results!
10th Oct 2017, 2:59 PM
ihateonions
0
Yes, or anyone else
10th Oct 2017, 2:50 PM
Carlos Andrés
Carlos Andrés - avatar
0
Install xammp and google about it, oh you need to learn php first too.
10th Oct 2017, 4:22 PM
John Durask
John Durask - avatar
0
Use the Force.
10th Oct 2017, 6:50 PM
Sergey Gromkov
Sergey Gromkov - avatar
0
ok, thanks everybody
15th Oct 2017, 6:11 PM
Carlos Andrés
Carlos Andrés - avatar