![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
24/04/2007, 19:48
|
![Avatar de chalchis](http://static.forosdelweb.com/customavatars/avatar36932_1.gif) | | | Fecha de Ingreso: julio-2003
Mensajes: 1.773
Antigüedad: 21 años, 6 meses Puntos: 21 | |
Re: paginador de jpinedo ¿porque desaparecen las sesiones ya escritas? hijole men pues no veo donde este el error mira yo probe algo
asi
//pagina index.php
<?php
session_start();
$_SESSION["name"]="axl rose";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
</head>
<body>
<a href="paginador_prueba.php">ir a la otra pagina</a>
</body>
</html>
//paginador_prueba.php
<?php
session_start();
echo $_SESSION["name"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
</head>
<body>
<table width="398" border="0">
<tr>
<td>
<?php
include('../Php/director_config.php');
include('../Php/director_erroresmsj.php');
$conexion = mysql_connect($director_host, $director_usuario, $director_password) or die("error al conectarse al servidor");
mysql_select_db($director_base,$conexion) or die("error al conectarse a la base de datos");
//seleccionamos las notas
//cantidad de resultados por página (opcional, por defecto 20)
$_pagi_cuantos = 3;
//$_pagi_sql = mysql_query("select * from $director_articulo where SECCION_ARTICULO=1",$conexion);
$_pagi_sql = "select ARTICULO_ID,TEMA_ARTICULO,SECCION_ARTICULO,PREFACI ON_ARTICULO from $director_articulo where SECCION_ARTICULO=1 order by ARTICULO_ID desc";
include('../Php/paginator.php');
while ($row = mysql_fetch_array($_pagi_result))
{
echo '<table width="397" border="0" cellspacing="0" cellpadding="0">';
echo '<tr>';
echo '<td height="0">'.$row['ARTICULO_ID'].'</td>';
echo '</tr>';
echo '<tr>';
echo '<td class="nota_texto_segundos"><span class="marquito"><img src="Image_nota/dosa.gif" width="60" height="58" /></span> <span class="tit_nota_segundo">'.$row['TEMA_ARTICULO'].'</span><br />
'.$row['PREFACION_ARTICULO'].'';
echo '</td>';
echo '</tr>';
echo '</table>';
}
//mysql_free_result($_pagi_sql);
mysql_close($conexion);
?>
</td>
</tr>
</table>
<?php
echo"<p>".$_pagi_navegacion."</p>";
?>
</body>
</html>
__________________ gerardo |