connect()) { $rs "/> connect()) { $rs ">

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

PHP中如其修改ACCESS中记录

WBOY
WBOYOriginal
2016-06-13 12:44:29827browse

PHP中如果修改ACCESS中记录
在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();

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

PHP 数据库
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