fijense en este q ya habia hecho!!!!
Código PHP:
<?php include('Connections/incomed.php');
// Variables de Configuración -----------------------------------
// Define el numero de Filas
$n_filas=3;
//***************************************************************
@$cat=$_REQUEST['id'];
//$cat=6;
$fotos = array();
$sql="SELECT * FROM imagenes where id_pro=".$producto_id." ORDER BY id ASC";
mysql_select_db ('incomed');
$sql_exec=mysql_query($sql);
function imagengrande()
{
window.open("verimagen.php?imagen=/iamges2/<?=$imagen;?>", "", "width=450,height=300");
}
/*while($row=mysql_fetch_assoc($sql_exec)){
$tottal=mysql_affected_rows(); // Calculo el numero total de itms a listar
}*/
$tottal=113;
// ------------------------------------------------------------------------------------------------------------------
$vert=$tottal/$n_filas;
$vert=round($vert);
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="100%" height="80"><table width="100%" height="80" border="0" align="center" cellpadding="0" cellspacing="0">
<?php
$a=0;// Colocando el contador horizontal en 0
$i=1;// Colocando el contador vertical en 0
$w=0;//Colocando un contador para el mensaje de "No hay articulos en esta acategoria"
while($row=mysql_fetch_assoc($sql_exec)){
$w=w+1;
if ($a==0){
echo '<tr>';
}
$a=$a+1;
$fotos[$i.'-'.$a] = $row['img'];
echo "<td height='80' width='53' border='0' ><a href=# onClick=\"window.open('verimagen.php?id=".$row['id']."; ','verimagen', 'width=530,height=470'); return false;\"><img src='images2/".$row['img']."' width='80' height='53' border='0'/></a>";
$r=$a;// contador remanente para listar imagenes sin exceso
if ($a >= $n_filas) {
$a=0;// reiniciando el contador horizontal
$i=$i+1;// aumentando el contador vertical
echo '</tr>';
}
if (empty($row)) {
echo"<table width='0' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td width='257'><div align='center'>No hay articulos en esta categoria </div></td>
</tr>
</table>
";
break 1;}
}
echo '</td>';
?>
el problema d este es q nada es visual a modo diseño en dw... todo es a codigo... solo veo lo visual al probarlo en un servidor..