function insertable() { $numargs = func_num_args(); if($numargs) { $arg_list = func_get_args(); $arg_list = array_map('mysql_real_escape_string', $arg_list); return "('".implode("', '", $arg_list)."')"; } }