Skip to content Skip to sidebar Skip to footer

(PHP + MySQL) Easy way to insert and delete

PHP-MySQL

In PHP, add MySQL and delete it the way the system works differently. And that difference makes everything good when it comes to getting a job done. We can say insert is Enter and the opposite of in is out. So we call to delete it go out.

With this mysql insert system you can form a register form, for example, and it can either be in sql. And mysql delete to delete the user. A very easy way to learn is to understand the system attributes and connect to the database before starting. Can create a new file or directly. But I think it’s better to have a new file called. to create config.php and paste this code into it.

After the connection to the database has been established, the connection has been established. Now let’s discuss mysql insert first, then let’s move on to mysql delete. Please study the following code a little!

PHP + MySQL insertion

PHP + MySQL delete

Use insert mysql get used to entering the form. At the top of mysql insert is about a table called. went member. and filled everyone pillar and area with massage. So if the name is in front, then paijo is also in front: D, then don't make a mistake when sorting, because it can get confused in the database. And mysqli query to call the query from the database so that it can be executed.

Use delete mysql can be found via a link or a form button. Namely to delete data lines that have been entered in the database. So you can delete paijo from column Surname. Use the WHERE attribute to find rows correctly. Paijo is in the name column. So if the column age is used it will fail.

Remember, before starting it, edit the config.php first so it can run properly : Mr. Green: and now you can create a new work with the above 2 attributes

Hopefully useful and good luck