Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/10/2011, 14:13
detectivemarti
 
Fecha de Ingreso: julio-2011
Mensajes: 25
Antigüedad: 12 años, 9 meses
Puntos: 1
Respuesta: Producto Nuevo

Sigue sin irme os agradeceria un poco de ayuda....
Os copio todo el codigo.


<?php
if(!isset($_SESSION))
{
session_start();
}

require_once('conn.php');
?>
<?
$mes = date('Y-m-d H:i:s',strtotime('-30 day'));
echo $mes;
$lista1 = mysql_query(' SELECT * FROM articulos where fecha >'.$mes.'');
// Bucle para generar el listado de registros
echo '<br><table width="640px" border="0" align="center" ><tr>';
$cnt = 0;
while ($fila = mysql_fetch_assoc($lista1))
{
if ($cnt % 3 == 0)
echo '</tr><tr>';
echo '<td><table width = "205px"><tr><td>';
echo '<div id="producto_titulo"><a href="detalles.php?id='.$fila['id'].'" >'.$fila['nombre'].'</a></div>';
echo '<div id="producto_imagen"><a href="detalles.php?id='.$fila['id'].'"><img src=../'.$fila['imagen'].' width="130" height="130" alt="Tamao original" border="0"> </a></div>';
echo '</td></tr><tr><td>';
echo '<div id="producto_comprado"><a href="agregacar.php?id_art='.$fila['id'].'&nom='.$fila['nombre'].'&id_usuari='.$_SESSION['inici'].'&id='.$fila['id'].'"><img src=../images/comprar.gif width="25" height="25" alt="comprar" border="0"> </a></div>';
echo '</td></tr></table></td>';
$cnt++;
}
echo '</tr></table>';
?>