Home > Backend Development > PHP Tutorial > PHP中如果修改ACCESS中记录

PHP中如果修改ACCESS中记录

WBOY
Release: 2016-06-23 14:12:57
Original
1017 people have browsed it

PHP 数据库

在PHP更新ACCESS数据库单条记录时,不想用UPDATE这个语句,


$mysql="select * from myhelp where id=1";
 if ($myconn->connect()) {
$rs = new com("adodb.recordset");  
$rs->Open($mysql,$myconn->conn,1,3);
$rs->movefirst;这句找到了这条要更新的记录,下面更新要怎么更新,

PHP中没有$RS->EDIT,和$RS->POST 这东东
$rs->fields('mytt')->value=$tt;
$myconn->close();

请问要怎么更新这单条记录的字段呢,上面的代码不行

回复讨论(解决方案)

$rs->update()

见你用的是 adodb,那么 asp 怎么用,你就怎么用

太谢谢您了,试了一直更新成功了

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template