I have a form that sends info from the user to a MySQL database. When the info is sent I need it to also send some of the info in an email to me. I can write to the db and send an email to me from the user, but I can not get more than 1 or 2 variables in the body of the email. (This is based on a trial table - the actual table, members, will have many more columns.) When I try to send them all there are too many parameters. When I do the following code the body of the email just says 1. I would prefer not to use an attachment if possible. Thanks in advance.
$query="insert into guests values (' ','$Name', '$Email', '$Comments')";
$result=mysql_query($query, $link);
mysql_close ($link);
mail( "my email", "New Guest",
$result, "From: $Email" );