How can you link HTML to a PHP and to MySQL? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How can you link HTML to a PHP and to MySQL?

Help

24th Apr 2018, 6:55 PM
Yadiel Lopez
5 Answers
+ 2
Yes to the part about MySQL. Just research mysqli functions on google (you’ll need your username, password, and database to start the process.) You can echo the html if you choose. You can also intermix it together. For instance: <?php $text = “Hello World!”; ?> <!DOCTYPE html> <html> <head></head> <body> <?php echo $text; ?> </body> </html>
24th Apr 2018, 9:41 PM
Ariela
Ariela - avatar
+ 3
Well you can add php by using the <?php ?> tags Or you can use it as form processing by using <form action=“file” method=“post or get”> <form> MySQL must be added by using mysqli functions in php
24th Apr 2018, 6:57 PM
Ariela
Ariela - avatar
+ 3
I just want to say thanks to ariela for patience, Yadiel pls eat a dictionary
24th Apr 2018, 9:10 PM
Alberto Cini - Noviia
Alberto Cini - Noviia - avatar
- 1
so I have to echo the html and in that php y have to throw in the MySQL with all the ip data of the website, yes?
24th Apr 2018, 7:10 PM
Yadiel Lopez
- 1
Awesome I'm starting to open my anus for knowledge, thank youuu!
24th Apr 2018, 11:35 PM
Yadiel Lopez