Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/02/2005, 04:57
GuitarMan
 
Fecha de Ingreso: mayo-2002
Ubicación: Ecuador
Mensajes: 74
Antigüedad: 21 años, 11 meses
Puntos: 0
aca les coloco el codigo real...

Código PHP:
mysql_select_db($database_sistema, $sistema);
$query_canales = "SELECT * FROM canales";
$canales = mysql_query($query_canales, $sistema) or die(mysql_error());
$row_canales = mysql_fetch_assoc($canales);
$totalRows_canales = mysql_num_rows($canales);





<?php do { ?>
<br><table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <th width="100%" scope="col"><div align="left"><span class="style4"><img src="imagesnovopan/bullet.gif" width="20" height="12"> <?php $calid $row_canales['id'];
$canalid $row_canales['canal'];

echo 
"<b><a href=\"noticiascanal.php?id=$calid\" class=\"linknegro\">$canalid</a></b>"?> </span></div></th>
    <th width="10" valign="bottom" scope="col"><img src="imagesnovopan/top_productos.gif" width="68" height="11" border="0" align="right"></th>
  </tr>
  <tr bgcolor="#FF9900">
    <td height="1" colspan="2"></td>
  </tr>
</table>



<?php
$idcanal 
$row_canales['id'];
    
//query novocentros
    
$query_noticias3 "SELECT id, titulo, resena, texto, foto FROM `noticias` WHERE 1 AND `canal` =$idcanal ORDER BY `id` DESC  LIMIT 0 , 2";
    
$noticias3 mysql_query($query_noticias3$sistema) or die(mysql_error());
    
$row_noticias3 mysql_fetch_assoc($noticias3);


    while (
$row_noticias3 mysql_fetch_assoc($noticias3)) {
     
    
$notiid $row_noticias3['id'];
     
$notititulo $row_noticias3['titulo'];
     
$notiresena $row_noticias3['resena'];
     
$notitexto $row_noticias3['texto'];
     
$notifoto $row_noticias3['foto'];

    echo 
"<table width=\"90%\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"0\">
     <tr>
    <td><table><a href=\"noticiasleer.php?id=$notiid\"><img border=\"0\" src=\"../admin/noticias_foto_bv.php?key=$notiid\" width=\"80\" align=\"left\" hspace=\"5\"></a><a href=\"noticiasleer.php?id=$notiid\" class=\"linknaranja\">$notititulo</a><br>$notiresena</table></td>
    </tr>
    </table>"
;

    }
?>

<?php } while ($row_canales mysql_fetch_assoc($canales)); ?>