类function怎么调用
时间:2021-07-01 10:21:17
帮助过:2人阅读
类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条件如何写?
根据你的需要呀