php method to delete a record: use php mysql to delete the database, the code is [echo '
php method to delete a record:
Deleting a record is Common basic operations between php and database. Below we mainly introduce the method of deleting a record in the database in php mysql. The code is as follows:
echo '删除'.
Of course, you can also use the following method to delete it as an example, the code is as follows:
Here you only need to change your database connection username and password, database name and data table name.
location.href='code.php';"; ?>
If you want to learn more about programming, please pay attention tophp trainingColumn!
The above is the detailed content of How to delete a record in php. For more information, please follow other related articles on the PHP Chinese website!