Código:
<?php include"config.php"; $resp = mysql_query("select * from descargas where activo='1' order by id desc limit 5") ; while($datos = mysql_fetch_array($resp)) { $desc=$datos[descripcion]; $result = mysql_query("select * from categorias where id = '".$datos[categoria]."'"); $cat = mysql_fetch_assoc($result); ?> texto sobre descargas y tal <?php } mysql_free_result($resp); mysql_close($conectar); ?>
Gracias