Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/04/2005, 04:45
Avatar de jam1138
jam1138
/** @package Moderador */
 
Fecha de Ingreso: julio-2004
Ubicación: sèveR led onieR lE
Mensajes: 9.368
Antigüedad: 19 años, 8 meses
Puntos: 102
Te respondo de memoria.. prueba con:
Código PHP:
<?php 
if (isset($_GET['mostrar'])) // Vemos si existe... 
{    
?>
    <table width="500" border="0" align="center" cellpadding="2" cellspacing="2">
      <tr bgcolor="#333185" class="letra_blanca">
        <td align="center" background="../imag/barrapc.jpg" bgcolor="#FFFFFF" class="gris_grande">Ver la Noticia </td>
        </tr>
      <?php 
$result_ver
=mysql_query("select 
TITULO,NOTICIA, FECHA
from NOTICIAS
where ID_NOTICIA='"
.$_GET['id_noticia']."'
order by TITULO"
$link) or die (mysql_error()); // Recuerda que recibimos por GET y ojo con las comillas

while ($row=mysql_fetch_array($result_ver)) {
$id_email=$row['ID_NOTICIA'];
$titulo=$row['TITULO'];
$noticia=$row['NOTICIA'];
$fecha=$row['FECHA'];
?>
      <tr>
        <td align="center" bgcolor="#FFFFFF" class="texto_boton"><?=$titulo ?>          </td>
        </tr>
      <tr>
        <td align="center" bgcolor="#FFFFFF" class="texto_boton"><?=$noticia ?> </td>
      </tr>
      <tr>
        <td align="center" bgcolor="#FFFFFF" class="texto_boton"><?=$fecha ?> </td>
      </tr>
      <?php
//CERRAMOS LA CONSULTA  $result_temario=mysql_query("select  ...
?>
    </table>
    
    <?php
    
}
    
?>
Cuando vaz a imprimir el valor de una variable no haces falta las comillas:
Código PHP:
echo "$variable"// mal
echo $variable// bien 
Y cuando estás en HTML y quieres solo imprimir una variable.. no es necesario el echo:
Código PHP:
<?
// tu consulta
?>
<td><?=$variable ?></td>
Espero te sirva... Suerte!
__________________
٩(͡๏̯͡๏)۶
» Cómo hacer preguntas de manera inteligente «

"100 años después, la revolución no es con armas, es intelectual y digital"