Home  >  Article  >  Backend Development  >  类function怎么调用

类function怎么调用

WBOY
WBOYOriginal
2016-06-13 12:22:171036browse

类function如何调用?
function autoExecute($table, $field_values, $mode = 'INSERT', $where = '', $querymode = '')
    {
。。。}
如何调用:$b=$new->autoExecute("fish",array('repass'=>'ss'),'',name=>'zhu');?where条件如何写?
function autoReplace($table, $field_values, $update_values, $where = '', $querymode = '')
    {
。。。}
如何调用:$c=$new->autoReplace("fish", array('name'=>'zhu','pass'=>'ss','repass'=>'s'), array('repass'=>'ss'));?
数据库里的内容是:'name'=>'zhu','pass'=>'ss','repass'=>'s'
如何更改为:'name'=>'zhu','pass'=>'ss','repass'=>'ss'
------解决思路----------------------
楼主请转到 WEB开发 / PHP 频道
------解决思路----------------------
where条件如何写?
根据你的需要呀

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