mail problem
Posted: Thu Dec 28, 2006 12:49 am
Im havin a little trouble with my mail function. Im sure its somthing simple . Can anyone help?
Code: Select all
require("popupheader.inc");
$dbh=mysql_connect ("localhost", "penguinp_member", "guess");
mysql_select_db ("penguinp_XMmembers");
$result= mysql_query("SELECT * FROM CartItems")
or die(mysql_error());
$num=mysql_num_rows($result);
$row = mysql_fetch_array($result);
$order = ("$row['product_name'], $row['Small'], $row['Medium'], $row['Large'], $row['XLarge']");
mail("ddunn@whois.com","$order");
echo"<table border='0' cellspacing='10' cellpadding='10'>";
echo"<tr><th>Thank You. Your order has been processed and a conformation e-mail will be sent to you.</tr></th>";
?>