Home > Backend Development > PHP Tutorial > 类function如何调用?

类function如何调用?

WBOY
Release: 2016-06-23 13:32:28
Original
947 people have browsed it

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条件如何写?
根据你的需要呀

Related labels:
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