Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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'];
Source by www.raghwendra.com #
 
PREVIOUS NEXT
Tagged: #connect #html #mysql #database
ADD COMMENT
Topic
Name
2+8 =