Inserting data into database using php First you need to create Database in your MYSQL Click the new button in the left side of you monitor, right your database name, then click create.
Next create your tablename like basic_info and put numbers of columns into 10, then click create.
So, now this is the table that you have created, first put an “id int(11) NOT Null Primary key, next is your firstname , middlename , lastname , gender, age, address, phonenumber , nameschool and course.
Here’s the exam of your table.
Next you need to connect your database right this codes on the notepad++, notepad, vscode . Next check your browser if successfully connected into database
Next you can add now into your database into your database. Add in you codes below.
Next we need to create form to have an input value into the database. Add codes in the php. Create an html form.