Re: query db and send output via email
| From: | Daniel Convissor | Date: | Wed, 11 Oct 2000 22:04:45 +0000 |
| Subject: | Re: query db and send output via email | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19716@lists.php.net to get a copy of this message | ||
Hey Rodney:
Everything up to here looks okay.
>
> $msg .= "username$B!'(B\t\t$username \n";
> $msg .= "password$B!'(B\t\t$password \n";
> $msg .= "mail address$B!'(B\t$email \n";
What are all those weird characters in there? Try this:
$msg .= "username\t\t$username\n";
$msg .= "password\t\t$password\n";
$msg .= "mail address\t$email\n";
Better yet is using spaces rather than tabs because tabs don't render
consistently:
$msg .= "username: $username\n";
$msg .= "password: $password\n";
$msg .= "mail address: $email\n";
Maybe that'll work??? I just ran a test on your code and it works for me.
If it doesn't work for you, then you need to test your query results.
Perhaps they're not producing anything or generating unexpected results. Try
the query at a command line or do something like this under your while
statement.
echo implode("<br>", $var);
Enjoy,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
More than just answers. Solutions. (SM)
http://www.analysisandsolutions.com/
4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409