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