用户添加不对啊??
function insert($table,$array){
$keys=join(",",array_keys($array));
$vals="'".join(",",array_values($array))."'";
$sql="insert into {$table}($keys) values ({$vals})";
mysql_query($sql);
var_dump($sql);
return mysql_insert_id();
}
这个是insert函数