Home  >  Article  >  Backend Development  >  PHP update database records_PHP tutorial

PHP update database records_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:07:54869browse

PHP update database record

 //Update record

$query="insert into chinachaodai (name,theindex)values ​​('company','1')";

$result=$mysqli->query($query);

 if($result)

 {

echo ("Return number of rows:".$mysqli->affected_rows);

 }

else

 {

echo("Failed");

 }

 $mysqli->close();

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/953962.htmlTechArticlePHP update database record //Update record $query=insert into chinachaodai (name,theindex)values ​​('company' ,'1'); $result=$mysqli-query($query); if($result) { echo (return number of rows:.$mysq...
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