Answers for "how to connect the mysql database in html"

0

connect html to mysql database

$con = mysqli_connect("localhost","your_localhost_database_user","your_localhost_database_password","your_localhost_database_db");
Posted by: Guest on October-06-2020
1

connect html to mysql database

$con = mysqli_connect('localhost', 'root', '',’db_connect’);
The “db_connect” is our database name that we created before.
After connection database you need to take post variable from the form. See the below code
$txtName = $_POST['txtName'];
$txtEmail = $_POST['txtEmail'];
$txtPhone = $_POST['txtPhone'];
$txtMessage = $_POST['txtMessage'];
Posted by: Guest on October-06-2020

Code answers related to "how to connect the mysql database in html"

Browse Popular Code Answers by Language