Ver Mensaje Individual
  #3  
Antiguo 11-07-2006
Cosgaya Cosgaya is offline
Miembro
 
Registrado: jun 2005
Posts: 105
Reputación: 22
Cosgaya Va por buen camino
gracias dec con eso y con un formulario utilizando los campos de tipo hidden ya lo tengo.

codigo
Código PHP:
if (! $next1){
$next1 = 0;
}
if (! 
$next2){
$next2 =1;
}
include(
"conexion.php");
$query = mysql_db_query( $db, "SELECT * FROM Peliculas limit $next1,$next2" );
$result = mysql_fetch_array( $query ); 
   echo  
$result["Cod"] ."  ". $result["Pelicula"] ;
$next1 = $next1 + 1;
$next2 = $next2 + 1;
 echo 
"<form action='index.php' method='post'>
 <input type='hidden'name='next1' value=
$next1>
 <input type='hidden'name='next2' value=
$next2>
          <input type='submit' value='OK'></form>"
; 
Responder Con Cita