Saludos señores tengo este problema...
Esta es la entrada a una galeria de imagenes donde extraigo las imagenes q identifican a cada galeria para luego acceder a ellas... pero me da el siguiente error
Notice: Use of undefined constant w - assumed 'w' in c:\easyphp1-8\www\teamazimut\web\img_inc_cat.php on line 36
y mi codigo aqui les dejo a ver quien consigue el error
Código PHP:
<?php include('Connections/azimut.php');
// Variables de Configuración -----------------------------------
// Define el numero de Filas
$n_filas=3;
//***************************************************************
@$cat=$_REQUEST['id'];
//$cat=6;
$fotos = array();
$sql="SELECT * FROM geleria_cat ORDER BY id ASC";
mysql_select_db ('azimut');
$sql_exec=mysql_query($sql);
/*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="774" border="0" align="center" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="774" height="200"><table width="257" height="112" 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['imagen'];
echo "<td height='774' border='0' ><a href='ficha_gal.php?id=".$row['id']."'><img src='images2/".$row['imagen']."' width='231' height='171' 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='774'><div align='center'>No hay articulos en esta categoria </div></td>
</tr>
</table>
";
break 1;}
}
echo '</td>';
?>
<?php /*if (empty($w)) {
echo"<table width='0' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td width='492'><div align='center'>No hay articulos en esta categoria </div></td>
</tr>
</table>
";
exit;}
*/?>
</table></td>
</tr>
</table>