Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/07/2004, 11:54
Newphp
 
Fecha de Ingreso: mayo-2004
Mensajes: 571
Antigüedad: 19 años, 11 meses
Puntos: 0
AAAAAAAAAAAAGGHRHRHRHGRGHR dios necesito ayuda:
Código PHP:
echo"<br><br>";
    
$i =1;
    
$files = array ();
    
$myDirectory opendir($mypath);
    echo 
"<table width='$table_width' bgcolor = '$table_bg_color' border ='$table_border' cellpadding='5' cellspacing='3' align=left><tr>";
    
$panaunde=$pagina*$nrppagina;
    
$deunde=($pagina-1)*$nrppagina;
    
$contor=0;
    
$contor2=0;
    while (
$file readdir($myDirectory)) {
    
$contor2++;
    if(
$contor>=$deunde and $contor<$panaunde)
    {
    if ((
$file != ".") && ($file != "..") && ($file != "ver_imagenes.php") && !(is_dir("$mypath"."$file")) )
    {
    
$files[] = $file;
    if (
is_int($i $cols)) {
    list(
$width$height) = getimagesize("$mypath"."$file"); 
    
$total count($files);

    echo 
"$total<td align='center' valign=top style='border: 1px solid black' bgcolor=#333333>";
    
?> 
no se como hacer el recuento :( lo he intentado todo pero no lo consigo(eso es lo malo de sar scripts de la red...que nunca consigo entenderlos al 100% y me dan problemas por eso xD)
como veis he puesto $total = count($files) pero me pone 3,6,9 etc.....solo quiero que me ponga el resultado total :( help me please

gracias