
25/05/2008, 18:12
|
| | Fecha de Ingreso: noviembre-2006 Ubicación: Evergreen Street
Mensajes: 239
Antigüedad: 18 años, 4 meses Puntos: 2 | |
Respuesta: Contar la cantidad de veces que se ha visto una imagen Pues, es el generado por Dreamweaver, así:
<h2 align="center">Listado de Fotos</h2>
<?php do { ?>
<table width="100%" border="0">
<tr>
<td align="center"><a href="detalle.php?foto_id=<?php echo $row_listado['foto_id']; ?>"><img src="chiki/th_<?php echo $row_listado['nombre']; ?>" width="150" height="150" border="0"></a></td>
</tr>
<tr>
<td align="center"><span class="Estilo2"><?php echo $row_listado['lugar']; ?></span></td>
</tr>
<tr>
<td align="center">Costo Q. <?php echo $row_listado['precio']; ?>.00</td>
</tr>
<tr>
<td align="center"> </td>
</tr>
</table>
<?php } while ($row_listado = mysql_fetch_assoc($listado)); ?>
<p>
<table border="0" width="50%" align="center">
<tr>
<td width="23%" align="center">
<?php if ($pageNum_listado > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_listado=%d%s", $currentPage, 0, $queryString_listado); ?>">Primero</a>
<?php } // Show if not first page ?>
</td>
<td width="31%" align="center">
<?php if ($pageNum_listado > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_listado=%d%s", $currentPage, max(0, $pageNum_listado - 1), $queryString_listado); ?>">Anterior</a>
<?php } // Show if not first page ?>
</td>
<td width="23%" align="center">
<?php if ($pageNum_listado < $totalPages_listado) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_listado=%d%s", $currentPage, min($totalPages_listado, $pageNum_listado + 1), $queryString_listado); ?>">Siguiente</a>
<?php } // Show if not last page ?>
</td>
<td width="23%" align="center">
<?php if ($pageNum_listado < $totalPages_listado) { // Show if not last page ?>
<a href="<?php printf("%s?pageNum_listado=%d%s", $currentPage, $totalPages_listado, $queryString_listado); ?>">Último</a>
<?php } // Show if not last page ?>
</td>
</tr>
</table>
</p>
<p> </p>
<!-- InstanceEndEditable --></td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
<?php
mysql_free_result($listado);
?>
Donde deseo poner el script del contador es abajo del precio, dentro de la Región repetida. |