I have a set of values that were put into a form and am now using this to put into a database. this is my error:
"Warning: implode() [function.implode]: Bad arguments. in /home/xxxxxx/public_html/login.php on line 177
Couldn't execute insert query."
$today = date("Y-m-d");
$fields_str = implode(",", $fields);
$values_str = implode('","',$values); <=line177
$fields_str .=",createdate";
$values_str .='"'.",".'"'.$today;
$fields_str .=",password";
$values_str .= '"'.","."md5"."('".$password."')";
$sql = "INSERT INTO member ";
$sql .= "(".$fields_str.")";
$sql .= " VALUES ";
$sql .= "(".'"'.$values_str.")";
$result = mysql_query($sql)
or die("Couldn't execute insert query.");
$_SESSION['auth']="yes";
$_SESSION['logname'] = $loginname;