
April 16th, 2000, 06:09 AM
|
|
Junior Member
|
|
Join Date: Feb 2000
Location: Bucharest, Romania
Posts: 10
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Here is the first file:
mailing_list_de.php3
====================
<?
mysql_connect("localhost","webuser","") or die("Database error");
mysql_select_db("rex");
$query="select doc_id,titlu from hybrid where limba='dt' and tip=210 order by data desc limit 3";
$result=mysql_db_query("rex",$query);
if ($result) {
while ($r=mysql_fetch_array($result)) {
$titlu=$r["titlu"];
$doc_id=$r["doc_id"];
$text="$titlu".$cr."http://www.mysite.ro/show_art_mail.php3?doc_id=".$doc_id.$cr.$cr;
}
}
this action is included in a loop, so the $text string has usually about 4 k.
?>
<form action="mailing_list_de_send.php3">
<p>Text: <textarea rows="14" name="S1" cols="82"><?print "$text"; ?></textarea></p>
<p><input type="submit" value="Send"></p>
</form>
mailing_list_de_send.php3
=========================
<?
mysql_connect("localhost","webuser","") or die("Database error");
mysql_select_db("rex");
print"$S1<br>";
$query="select email from mailing_list where limba='dt'";
$result = mysql_db_query("rex",$query);
if ($result) : {
while ($r=mysql_fetch_array($result))
{
$email=$r["email"];
mail($email,"News",$S1,'Errors-To: errors@mysite.ro');
print "ok<br>";
}
} endif;
?>
=================================
The text shown in the mailing_list_de_send.php3 file is not the whole text... I receive no errors, but the $S1 variable received in the 2nd file does not contain the whole data... :-(
|