Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > PHP

Reply
 
LinkBack Thread Tools Display Modes
Old 02-11-2005, 07:02 AM   #1 (permalink)
roexecom
Registered User
 
Join Date: Feb 2005
Posts: 2
roexecom is on a distinguished road
Smile How to send multiple records from db to email address

Hi

I want to send few records from a database to an email address

Each records should be a table <tr>

Please help me on this

Thanck you

Emilian Anghel
roexecom is offline   Reply With Quote
Old 02-11-2005, 09:05 AM   #2 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
can you give some more details? like your table design & what information you want to send.
__________________


Urban Clothing
Admin is offline   Reply With Quote
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
Old 02-14-2005, 10:39 PM   #4 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 596
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
Change '$txt = $content;' to '$txt += $content . "\n";'
teknomage1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
worlds longest email address ashish Lounge 4 01-26-2005 09:01 PM
Would be really grateful for help with inserting multiple records debbieau PHP 2 06-16-2004 04:06 PM
Trouble inserting multiple records into table, Please someone help me! Thanks bearslife PHP 3 05-14-2004 05:59 PM
email address format trevor PHP 8 12-23-2003 05:25 AM


All times are GMT -8. The time now is 07:21 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting