为啥我添加不进去用户
function insert($table,$array){ $keys = join(",",array_keys($array)); $vals ="'".join(",",array_values($array))."'"; $sql = "insert{table}(keys) values ({$vals})"; mysql_query($sql); return mysql_insert_id(); } 这段代码那个table好像传不进去
function insert($table,$array){ $keys = join(",",array_keys($array)); $vals ="'".join(",",array_values($array))."'"; $sql = "insert{table}(keys) values ({$vals})"; mysql_query($sql); return mysql_insert_id(); } 这段代码那个table好像传不进去
2019-05-15
举报