![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
09/07/2009, 09:42
|
| | Fecha de Ingreso: julio-2009
Mensajes: 22
Antigüedad: 15 años, 7 meses Puntos: 1 | |
Respuesta: email convertido en link y de resultado de sus datos NO ENTENDI LO K KIERES HACER.... pero espero que este codigo te sirva de algo.. envía un mail con una tabla html y datos desde BD Código PHP: <?php
$id=$_GET['id'];
$mail=$_GET['mail'];
include_once('conectar.php'); conectar_bd();
$sql="SELECT p.`ID`, p.`MODELO`, p.`DESCRIPCION`, p.`ESPECIFICACION`, p.`IMAGEN`, pp.`VALOR` FROM productos_modelos p, productos_precios pp WHERE p.`ID`=$id AND pp.`PRODUCTO`=p.`ID` limit 1";
$result=mysql_query($sql); $producto_detalle_row = mysql_fetch_array($result) ;
$html='<table border="0" cellspacing="0" cellpadding="0"> <tr> <td><h2 align="center" style="text-transform:uppercase; margin: 0px; padding: 0px;">'.$producto_detalle_row['DESCRIPCION'].'</h2></td> <td> </td> </tr> <tr> <td valign="top">
<div class="galeria_imagen"> <img src="img_productos/'.$producto_detalle_row['IMAGEN'].'" alt="Producto" width="300px" border="0" longdesc="Producto" /> </div> </td> <td valign="top">
<div class="galeria_detalle_producto"> <p style="margin:0;">'.$producto_detalle_row['DESCRIPCION'].'</p> <p style="margin:0;"><strong>Cod: '.$producto_detalle_row['ID'].'</strong></p> <p style="margin:0;"><strong>$ '. number_format($producto_detalle_row['VALOR']).' + iva</strong></p> </div>
<div class="galeria_cantidad"> <h3>NOTA:</h3> <ul> <li>Precio valido solo para compras por este medio</li> <li>Stock sujeto a disponibilidad</li> <li>Precio normal: Targeta de credito o 5 Cheques (0 - 30 - 60 - 90 - 120 Días)</li> </ul> </div> </td> </tr> </table>';
$emailempresa = "[email protected]" ; $asunto = "Le han recomendado un producto DE UNA EMPRESA" ;
mail($mail, $asunto, $html, $sheader = "From:".$emailempresa."\r\nContent-type: text/html\r\n");
?> |