pues antes de ke le pusiera la paginacion si me funcionaba correctamente, pero nada mas comenze hacer modificaciones y el codigo dejo de funcionar a como funcionaba en un principio, ahora solo funciona la paginacion pero no muestra imagen y la pagina de detalles no muestra el resultado de las variables.
De hecho lo unico ke se modificio fue la de mostrar noticias y la detelles no se modificio nada.
Mira aki te paso la primera parte de mostrarnoticias el cual si funciona, para ke lo chekes y talves encuentres el error con esto:
Código PHP:
<html>
<head>
<title>MOSTRANDO NOTICIAS POR: Gino'FL</title>
</head>
<body>
<?
//conecto con la base de datos
$conn = mysql_connect("localhost","root","");
mysql_select_db("basededatos",$conn);
//Hacemos el Select
$ssql = "SELECT * FROM noticias";
//Ordenamos las Noticias para que se vean las mas recientes
$ssql .= " ORDER BY id desc";
//tomo el juego de resultados
$resultid = mysql_query($ssql,$conn);
?>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="20%"> </td>
<td width="60%" colspan="3">
<p align="center"><b><font face="Arial Black" size="4">MOSTRANDO NOTICIAS</font></b></td>
<td width="20%"> </td>
</tr>
<tr>
<td width="20%"> </td>
<td width="20%"> </td>
<td width="20%"> </td>
<td width="20%"> </td>
<td width="20%"> </td>
</tr>
<tr>
<td width="20%"> </td>
<td width="20%"> </td>
<td width="20%"> </td>
<td width="20%"> </td>
<td width="20%"> </td>
</tr>
<tr>
<td width="20%"> </td>
<td width="60%" colspan="3">
<?
//muestro los datos en un bucle
$num_filas = 0;
while (($damefila=mysql_fetch_object($resultid)) && ($num_filas<10))
{
?>
<table border="1" cellpadding="0" cellspacing="0" width="100%" id="AutoNumber2" style="border-left: .75pt solid black; border-right: .75pt solid black; border-top: 1.5pt solid black; border-bottom: 1.5pt solid black" fpstyle="7,011111100">
<tr>
<td width="76%" style="font-weight: bold; color: white; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid black; background-color: #B4B4CA">
<font face="Arial" size="2"><a href="detalles.php?id=<?echo strip_tags($damefila->id)?>"><?echo strip_tags($damefila->titulo)?></a></font>
</td>
<td width="24%" style="font-weight: bold; color: white; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom: .75pt solid black; background-color: #B4B4CA">
<p align="right">
<font face="Arial" size="2"><?echo strip_tags($damefila->fecha)?></font></td>
</tr>
<tr>
<td width="76%" style="font-weight: bold; color: black; border-style: none; background-color: white" valign="top">
<font face="Arial" size="2"><?echo strip_tags($damefila->mensaje)?></font></td>
<td width="24%" style="color: black; border-style: none; background-color: white" valign="top">
<p align="center">
<img border="0" src="fotos/<?echo strip_tags($damefila->foto)?>" width="99" height="99" align="right"></td>
</tr>
</table>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<?
$num_filas++;
} //termina el bucle while
?>
</td>
<td width="20%"> </td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3">
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%">
<p align="center"><b><font face="Arial" color="#FF0000">
<a href="formulario.htm">Nueva Noticia</a></font></b></td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%">
<p align="center"><b><font face="Arial" color="#FF0000">Gino'FL - Email:
[email protected]</font></b></td>
</tr>
</table>
</body>
</html>