can anyone see anythig wrong with this?
$
key = mysql_insert_id();
$query = "SELECT * FROM userdeats WHERE idnum='$key'";
/* Execute the query */
$result = mysql_query($query);
/* get an array of the table results */
$values = mysql_fetch_array($result);
$mail_to = $values['req_email'];
$mail_subject = 'A requested user account has been created';
$mail_body = 'User account number ".$key." has been created. The detaisl are as followos: Username = $values['new_user'] Password = $values['new_pass'] E-mail address = $values['new_email']';
$headers = 'CC: itservices@gm.tv';
$headers = 'From: itservices@gm.tv';
mail($mail_to, $mail_subject, $mail_body, $headers);