How do i link a database to a HTML code? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How do i link a database to a HTML code?

for example if I'm taking petitions or comments or poles, etc. How do I save the data collected into a database of some sort?

21st Jun 2017, 9:42 PM
rahul raparia
2 Réponses
+ 2
mysql_connect( "localhost","USERNAME","PASSWORD") ; mysql_select_db("DBNAME"); in a php file or if in html then In the php embedded part
21st Jun 2017, 9:50 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
Thank you Sami !
21st Jun 2017, 9:51 PM
rahul raparia