How do you create and manage a complete form using Mariadb | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do you create and manage a complete form using Mariadb

Database

9th Aug 2017, 4:31 PM
Abdul Shakur Abbas Sakhr
Abdul Shakur Abbas Sakhr - avatar
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
9th Aug 2017, 4:37 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 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(); ?>
9th Aug 2017, 4:39 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 1
did you look sql fundemantals here ??? it will help you to understand creating database and tables
9th Aug 2017, 4:46 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
0
is this the PHP for the form?
9th Aug 2017, 4:44 PM
Abdul Shakur Abbas Sakhr
Abdul Shakur Abbas Sakhr - avatar
0
how do I create the tables with mariadb
9th Aug 2017, 4:44 PM
Abdul Shakur Abbas Sakhr
Abdul Shakur Abbas Sakhr - avatar
0
yes. I studied it here
9th Aug 2017, 4:48 PM
Abdul Shakur Abbas Sakhr
Abdul Shakur Abbas Sakhr - avatar