Lo que hago es:
Código PHP:
<?
$de="[email protected]";
$destinatario="[email protected]";
$tema="NEWSLETTER";
$contenido="
<html>
<head>
<title>NEWSLETTER</title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
</head>
<body>
</body>
</head>
</html>
$sheader="From:".$sfrom."nBCC:xxx@xxx.comnReply-To:".$de."n";
$sheader=$sheader."X-Mailer:PHP/".phpversion()."n";
$sheader=$sheader."Mime-Version: 1.0n";
$sheader=$sheader."Content-Type: text/html";
mail($destinatario,$tema,$contenido,$sheader);
?>
Código PHP:
<?php
include("newsletterconexion.php");
$numero = $_POST['numero'];
$sql="SELECT * FROM $tbl_name WHERE numero='$numero' AND tipo='newsletter'";
$result=mysql_query($sql);
$while($rows=mysql_fetch_array($result)){
?>
Código HTML:
<strong><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><? echo $rows['titulo']; ?></font>
Creo q el problema es que estoy dentro de una variable y no puedo hacer las consultas y mostrar los datos de esa manera.
Espero se entienda.
Muchas gracias.