0
How do you create and manage a complete form using Mariadb
Database
6 Answers
+ 1
too complex
you dont create form in mariadb you create tables for form and you create form in html+php to write/read from mariadb
+ 1
<?php
$servername =Â "localhost";
$username =Â "username";
$password =Â "password";
$dbname =Â "myDB";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}Â
$sql =Â "INSERT INTO MyGuests (firstname, lastname, email)
VALUES ('John', 'Doe', 'john@example.com')";
if ($conn->query($sql) === TRUE) {
    echo "New record created successfully";
} else {
    echo "Error: " . $sql . "<br>" . $conn->error;
}
$conn->close();
?>
+ 1
did you look sql fundemantals here ???
it will help you to understand creating database and tables
0
is this the PHP for the form?
0
how do I create the tables with mariadb
0
yes. I studied it here