PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?
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>";
?>
Im just trying to pull orders off mysql and have the respective sizes of each model emailed to me. I can get one model and sizes but not all of them. Is there an easier way?