Re: readdir() output question

From: Date: Fri, 13 Dec 2002 14:17:05 +0000
Subject: Re: readdir() output question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128160@lists.php.net to get a copy of this message
$img_count = 0; echo(" <table> <tr> <td colspan=5>My Images</td>"): (loop through filenames) { if (($img_count % 5) == 0) echo(" </tr><tr>"); echo(" <td><img_src=\"$filename\"></td>"); $img_count = $img_count + 1; } while (($img_count % 5) != 0) { echo(" <td>&nbsp;</td>"); } echo(" </tr> </table>") Matt RClark <rclark@swbanktx.com> wrote in message news:20021213133818.45214.qmail@pb1.pair.com... > Hello all! > > Ok, I have a readdir() reading pictures files from a directory. But now I > want to output them into a html table, say 5 across the top row, then 5 the > next row, etc. What I cant figure out is how to make this happen. Right now, > I am not reading the files into an array. Should I do this and then create a > while loop? > > Thanks, > Ron Clark > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#128160) next »