Home  >  Article  >  Backend Development  >  The addition, deletion, modification and query functions implemented by mysql in php

The addition, deletion, modification and query functions implemented by mysql in php

墨辰丷
墨辰丷Original
2018-06-08 17:17:381679browse

This article mainly introduces the addition, deletion, modification and query functions implemented by mysql in php. Interested friends can refer to it. I hope it will be helpful to everyone.

List code


  
  Username
  Password
  ";

  while($row = mysql_fetch_array($result)) {
    echo "";
    echo "" . $row['username'] . "";
    echo "" . $row['password'] . "";
    echo "";
  }
  echo "";

  mysql_close($con);

?>

Delete

Add

Modify


  
    用PHP向数据库中实现简单的增删改查
  

Insert:

username:
password:



Delete

username:
Are you sure?



Update

username:
You want to change your password into:



Summary: The above is the entire content of this article, I hope it will be helpful to everyone's study.

Related recommendations:

How to use and introduce the PHP Closure class

PHP Mysql jQuery statistics are currently online Number of users

Usage of switch statement in PHP

The above is the detailed content of The addition, deletion, modification and query functions implemented by mysql in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn