function insert($table,$array){ $keys=join(",",array_keys($array)); $vals="'".join("','",array_values($array))."'"; $sql="INSERT INTO {$table}($keys) values({$vals})"; mysql_query($sql); return mysql_insert_id();}
风中雨剑
相关分类