Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/07/2010, 01:31
Avatar de MarioAlejandroCR2
MarioAlejandroCR2
 
Fecha de Ingreso: mayo-2010
Ubicación: Esparza - Puntarenas
Mensajes: 98
Antigüedad: 14 años
Puntos: 2
Pregunta Paginar y crear links en php

Tengo una base de datos de noticias con noticias, y soy novato en php, como puedo paginar y mostrar las noticias o partes de ellas, como hay en muchos sitios de noticias, que apenas muestarn un poco y ponen, "continuar leyendo" o algo similar, he visto algo de que a la un
Cita:
"select * from noticia (mi tabla) limit 1,10 (deseo mostrar 10 noticias por página)"
Pero no entiendo muy bien algunos tutoriales, y además no entiendo como hacer que el titulo sea un link y tome el campo idnoticia y lo cargue en otra página que ya tengo con el siguiente código:

Código HTML:
<?php 
      require_once('conexion.php'); 
      //Consulta los row_regis del usuario para la interfase
      mysql_select_db($Basedatos, $MiConexion);
      $AuxSql = "SELECT * FROM noticia WHERE idnoticia = '3'";
      $regis = mysql_query($AuxSql, $MiConexion) or die(mysql_error());
      $row_regis = mysql_fetch_assoc($regis);
?>

<head>
<link rel='stylesheet' type='text/css' href='estilo.css' />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $row_regis['titulo']?> - Tecnologías de Información | UTN Sede Pacífico</title>
</head>

<body>
<center><div><img src="media/img/banner.png" /></div>
<div style="width:950px;">
<ul class="menu blue">
    <li><a href="index.php" title="">Inicio</a></li>
    <li><a href="registro.php" title="">Carrera</a></li>
    <li><a href="registro.php" title="">Laboratorios</a></li>
    <li><a href="registro.php" title="">Profesores</a></li>
    <li><a href="registro.php" title="">Descargas</a></li>
    <li><a href="registro.php" title="">Galeria</a></li>
    <li><a href="registro.php" title="">Calendario</a></li>
    <li class="current"><a href="noticias.php" title="">Noticias</a></li>
</ul><img src="media/img/bannerbajo.png" /></div>
<p></p>
<div class="divcont">
<div class="divcontgral">
<table cellpadding="0" cellspacing="0">
<tr>
<td><img src="media/img/sup_gral.png" /></td>
</tr>
<tr>
<td><div class="divgral">
<center><div class="divnoti">
<b><h1><?php echo $row_regis['titulo']?></h1></b><hr color="#DDDDDD">
<?php echo $row_regis['contenido']?><br /><hr color="#DDDDDD">
<b>Autor:</b> <?php echo $row_regis['autor']?><br>
<b>Creado el:</b> <?php echo $row_regis['fecha']?> <b>a las</b> <?php echo $row_regis['hora']?><br>
<b>Categoría:</b> <?php echo $row_regis['tag']?><br><p></p>
</div></center>
</div></td>
</tr>
<tr>
<td><img src="media/img/baj_gral.png" /></td>
</tr>
<tr>
<td height="25px"></td>
</tr>
</table>
</div>
<div class="divsep"></div>
<div class="divlat">
<table cellpadding="0" cellspacing="0">
<tr><td><img src="media/img/sup_lat.png" /></td></tr>
<tr>
<td><div class="divsocial"><p></p>
<a href="http://www.facebook.com/home.php?#!/profile.php?id=100001259469833&v=wall" target="_new"><img style="border:none;" src="media/iconos/FaceBook.png" onMouseOver="this.src='media/iconos/Hover_FaceBook.png'" onMouseOut="this.src='media/iconos/FaceBook.png'"/></a>
<a href="https://twitter.com/UTNTIPACIFICOCR" target="_new"><img style="border:none;" src="media/iconos/twitter.png" onMouseOver="this.src='media/iconos/Hover_twitter.png'" onMouseOut="this.src= 'media/iconos/twitter.png'"/></a>
<img style="border:none;" src="media/iconos/feed.png" onMouseOver="this.src='media/iconos/Hover_feed.png'" onMouseOut="this.src= 'media/iconos/feed.png'"/>&nbsp;
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 6000,
  width: 230,
  height: 200,
  theme: {
    shell: {
      background: '#f0f0f0',
      color: '#777777'
    },
    tweets: {
      background: '#2e2e2e',
      color: '#f0f0f0',
      links: '#4aed05'
    }
  },
  features: {
    scrollbar: true,
    loop: false,
    live: true,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: 'all'
  }
}).render().setUser('UTNTIPACIFICOCR').start();
</script>

</div></td></tr>
<td><img src="media/img/baj_lat.png" /></td>
</table>
</div>
</div>
</center>
</body>
</html> 
De antemano, gracias, si pudierna enviarme un tutorial que me pueda servir, o algunas ideas o soluciones para novatos (por ahora espero)