MAil and mysql help
| From: | D4rks1d3 | Date: | Tue, 24 Sep 2002 03:59:14 +0000 |
| Subject: | MAil and mysql help | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-117366@lists.php.net to get a copy of this message | ||
hi
i need to put a mysql_query into an email, best explained..
while ($row=mysql_fetch_rows($base)) //$base=MySQL Query
echo "<tr>\n";
echo "<td>$row[0]</td>\n";
echo "<td>$row[1]</td>\n";
echo "<td>$row[2]</td>\n";
echo "<td>$row[3]</td>\n";
well. the result is a table with users an information about them..
i want to sent this table by email with the mail() function but i tried
putting php code in the $message like echo "<html>"..etc but it doesn't
work..
i'll appreciate some help
thanx