here's what i did to fisx the extra id
<?
include("dbinfo.inc.php");
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
//
// First, you need to return the person's NAME in the query.
// Question, what is the field first?
//
$db_data = mysql_query("SELECT first, email FROM contacts");
$subject = 'Urbanformula Newsletter';
$body = $_POST['content'];
$from = "From: \"Urbanformula.com\"";
//
// Second, you need to include it in the list function
// making sure you keep the field names in the same order as
// in the select statement in your query
//
while (list($first, $email) = mysql_fetch_row($db_data)) {
//
// Here is where you will be changing the name
// %name% is a "placeholder" in your pre-formatted
// message body where you want to put the person's name
//
// Here is a sample:
//
// Dear %first%,
//
// Here is a copy of the current newsletter.
//
//
// Regards,
// Newletter Sender
//
str_replace('%first%', $body);
//
// create full email address i.e.
// "Joe Something" <joesomething@somewhere.com>
//
$email = '"'.$first.'"'." <".$email.">";
//
// mail function parameters are in this order:
// $to, $subject, $message, $headers
//
mail($email, $subject, $body, $from);
}
?>
having problem on line 37