mail problem

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!

Moderator: General Moderators

Post Reply
dbdvd7
Forum Newbie
Posts: 18
Joined: Fri Nov 17, 2006 2:33 pm

mail problem

Post 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>";


?>
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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

:)
Post Reply