Code: Select all
<?php
#Show the result in a table
while ($row=mysql_fetch_array($result)) {
if ($row["IDalojamiento"] < 10) { $numero = '00'.$row["IDalojamiento"]; }
elseif ($row["IDalojamiento"] < 100) { $numero = '0'.$row["IDalojamiento"]; }
else { $numero = $row["IDalojamiento"]; }
if (!(file_exists($root.'alojamientos/pel/alo'.$numero.'.swf'))) {
echo '<tr>';
echo '<td align="center" class="labelcell">';if ($row["alta"] == 1) { echo '*'; }
echo '</td>';
echo '<td align="center" class="labelcell">'.$row["IDalojamiento"].'</td>';
echo '<td align="left" class="labelcell">'.$row["nombre"].'</td>';
echo '<td align="left" class="labelcell">'.$row["direccion"].'</td>';
echo '<td align="center" class="fieldcell"><a href="contenido.php?sistema=1&seccion=modificacion&id='.$row["IDalojamiento"].'">Modificar</a></td>';
echo '</tr>';
}
#Clear cache
clearstatcache();
}
?>| * | ID | name | address | Modify button |
Any help would be appreciated. Thank you very much