函式:dba_replace()


dba_replace

更动或加入资料。

语法: boolean dba_replace(string key, string value, int handle);

传回值: 布林值

函式种类: 资料库功能

内容说明

本函式更动资料库中的资料,若资料不存在则加入。参数 key 为键值 (key) 字串。参数 value 为欲更动的资料内容。参数 handle 为开启资料库时所传回来的代号 ID。成功则传回 true 值。

参考

dba_exists()  dba_fetch()  dba_delete()  dba_insert()  


[ 上一页 下一页 ]