Page 1 of 1

mail problem

Posted: Thu Dec 28, 2006 12:49 am
by dbdvd7
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>";


?>

Posted: Thu Dec 28, 2006 2:28 am
by feyd
Since we have to guess, I'll guess it has to do with "bad" string syntax.

Time to read http://php.net/language.types.string

:)