function?update($table,$array,$where=null){
??foreach($array?as?$key=>$val){
????if($str==null){
????$sep="";
}else{
????$sep=",";
}
??$str.=$sep.$key."='".$val."'";
??}
$sql="update?{$table}?set?{$str}?".($where==null?null:"where".$where);
mysql_query($sql);
????return?mysql_affected_rows();
}Notice: Undefined variable: str in?D:\phpnow\vhosts\127.0.0.39\lib\mysql.func.php?on line?27Notice: Undefined variable: str in?D:\phpnow\vhosts\127.0.0.39\lib\mysql.func.php?on line?32編輯成功!查看管理員列表
- 2 回答
- 0 關注
- 1362 瀏覽
添加回答
舉報
0/150
提交
取消