Código PHP:
<?php
$path="uma";
$directorio = dir($path);
$directorio->read();
$directorio->read();
while($entrada = $directorio->read()){
$a++;
$imagen[$a] = $entrada;
}
$directorio->close();
for ($i=1; $i<=10; $i++){
echo "<tr align=\"center\">";
for ($e=1; $e<=10; $e++){
$entrada = $directorio->read();
echo "<td bgcolor=\"#000000\"><img src=\"".$path."/".$entrada."\" width=\"111\" height=\"111\"></td>";
}
echo "</tr>";
}
$directorio->close();
?>
Parse error: parse error, expecting `','' or `';'' in /data/members/free/tripod/es/t/a/r/miweb/htdocs/imagenes/catalogo/catalogo.php on line 25
en este codigo
Código PHP:
<?
$path="uma";
$directorio = dir($path);
$directorio->read();
$directorio->read();
while($entrada = $directorio->read()){
$a++;
$imagen[$a] = $entrada;
}
$directorio->close();
$paginas = ceil($a/100);
if(!isset($page)){
$page = "1";
}
$o = 100*($page-1);
for ($i=1; $i<=10; $i++){
echo "<tr align=\"center\">";
for ($e=1; $e<=10; $e++){
$o++;
echo "<td><img src=\".$path."/".$imagen[$o].""></td>";
}
echo "</tr>";
}
$directorio->close();
}
?>