function insert($table,$array){ //error_reporting(E_ALL ^ E_DEPRECATED); $keys=join(",",array_keys($array)); $vals="'".join("','",array_values($array))."'"; $sql="insert into {$table}($keys) values({$vals})"; mysql_query($sql); return mysql_insert_id(); }
添加不成功呀!!!!而且还提示mysql_query报错,,,,如何解决
树袋猫
天启之魂