Ver Mensaje Individual
  #8 (permalink)  
Antiguo 19/07/2010, 14:14
Avatar de elchicho118
elchicho118
 
Fecha de Ingreso: mayo-2010
Mensajes: 74
Antigüedad: 14 años
Puntos: 1
Respuesta: Cómo agregar etiquetas table, tr, td en variables php?

Cita:
Iniciado por johhan16 Ver Mensaje
Código PHP:
<table>
<tr>
<td>
<div class="adsmanager_ads_desc">
  <?php if (@$positions[5]->title) {$strtitle adsmanager_html::getLangDefinition($positions[5]->title);} ?>
  
<?php echo "".@$strtitle."";
    if (isset(
$fDisplay[6]))
    {
    foreach(
$fDisplay[6] as $field)
    {
  
adsmanager_html::showFieldValue($row,$field,$field_values,$conf->email_display,$option,$itemid,1,$plugins); /* 1 = Ad Mode */
    
}
    }
  
?>

</div>
 </td>
</tr>

            
<tr>
<td> 
<div class="adsmanager_ads_price">
  <?php if (@$positions[3]->title) {$strtitle adsmanager_html::getLangDefinition($positions[3]->title); } ?>
  <?php echo "<h3>".@$strtitle."</h3>";
    if (isset(
$fDisplay[4]))
    {
    foreach(
$fDisplay[4] as $field)
    {
  
adsmanager_html::showFieldValue($row,$field,$field_values,$conf->email_display,$option,$itemid,1,$plugins) ; /* 1 = Ad Mode */
    
}
    }
  
?>
</div>
</td>
</tr>
</table>
la verdad nose si funcionara asi pero prueba a ver

asi no le va a funcionar


lo mejor es que dentro de la tabla ponga

<h3><?php // la variable que quiere mostrar ?></h3>
<table>
<tr>
<td><?php // la variable que quiere mostrar ?></td><td>Toyota</td>
</tr>
<tr>
<td><?php // la variable que quiere mostrar ?></td><td>Yaris</td>
</tr>
<tr>
<td><?php // la variable que quiere mostrar ?></td><td>2009</td>
</tr>
</table>
__________________
QUISIERA HACER LO QUE NADIE HA HECHO EN LA MITAD DE TIEMPO