View Single Post
Old 02-11-2005, 09:09 AM   #3 (permalink)
roexecom
Registered User
 
Join Date: Feb 2005
Posts: 2
roexecom is on a distinguished road
More on this

I have a shopping cart, and i need to send the cart content to an email address, and each product should be a <tr> from the table.

I have already done this
PHP Code:
<?
include("admin/connect.php");
$sql="select * from cl_entries";
$rs=mysql_query($sql);
while(
$row=mysql_fetch_array($rs))
{
  
$content=$row["EntryName"];

  
$count=count($content);

  for(
$i=0$i<$count$i++)
  {
    
$txt=$content;
    echo 
$content;
  }
}

$email="emilian_anghel@yahoo.com";
$sub="Test!";

$m=mail($email$sub$txt);
?>
Now i don't know what to do next. This one send only one record, the last one.

Help me on this please

Thanck you

Emilian Anghel
roexecom is offline   Reply With Quote