Home>Article>Backend Development> How to modify records in php mysql

How to modify records in php mysql

藏色散人
藏色散人 Original
2021-09-03 09:18:43 2213browse

php Mysql method to modify records: 1. Query the current record through "SELECT * FROM symbols"; 2. Modify the record through "mysqli_query($sql);".

How to modify records in php mysql

The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer

php How to modify mysql records?

The example in this article describes how to modify records in PHP MySQL. Share it with everyone for your reference.

The details are as follows:

The code is as follows:

修改记录

query($query)){ //显示返回的记录集行数 if($result->num_rows>0){ //如果有记录 //显示记录集中列的内容 echo ""; while($row=$result->fetch_array()){ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; } } //释放对象所占用的内存 $result->close(); } ?>

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to modify records in php mysql. 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