guarda la pagina che arriva è la seguente, ovviamente non funziona perchè l'include non viene accettato in questo modo. Se devo spedire una e-mail con delle news prese da un db come faccio se non accetta gli include. Che altro linguaggio devo usare?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<?
include('http://www.web4u.it/samuel/Pdc/function_db.php');
error_reporting(0);
$link_id = db_connect();
$result = mysql_query("SELECT Cod_Msg, Anno, Mese, Giorno, Titolo, Testo FROM news ORDER BY Anno DESC, Mese DESC, Giorno DESC, Cod_Msg DESC");
while($dati = mysql_fetch_array($result))
{
echo "&news" . $dati["Cod_Msg"] . "=" . $dati["Giorno"] . "/" . $dati["Mese"] . "/" . $dati["Anno"] . "|" . $dati["Titolo"] . "|" . $dati["Testo"];
}
?><HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV></DIV>You are currently subscribed to our newsletter mailing list as
massimo@web4u.it. To unsubscribe, click
here: Unsubscribe
</BODY></HTML>

Rispondi quotando