String Problem
Posted: Thu Dec 28, 2006 12:18 pm
Anyone know why this string doesn't work? Very green to php and have been messing with this for a day, anything will help.
Code: Select all
<?
error_reporting(E_ALL);
require("popupheader.inc");
$dbh=mysql_connect ("localhost", "", "");
mysql_select_db ("");
$result= mysql_query("SELECT * FROM CartItems")
or die(mysql_error());
$row = mysql_fetch_array($result);
$order_string = <<< String
$row['product_name']
$row['Small']
$row['Medium']
$row['Large']
$row['XLarge']
String;
mail("ddunn@extramediumapparel.com","Order",$order_string);
echo"<table border='0' cellspacing='10' cellpadding='10'>";
echo"<tr><th>Thank You. Your order has been processed and a confirmation e-mail will be sent to you.</tr></th>";
?>