I have a table scripted like so,
<?php
// set the folder variable
$folder = "Pics";
// read the images into an array
$filearray = glob("$folder/*.{jpg}", GLOB_BRACE) ;
$cols = 3; // how many columns do we want in our table
$count = 0; // start count
echo "<table bgcolor=#50007C border=1 cellpadding=15 align=center >
<tr>
<td colspan=$cols> My Pictures </td>
</tr>
<tr>
";
foreach ($filearray as $key => $value) {
$count++; // add 1 to the counter each time we loop
// make a new <td> for each item in array
echo "<td align=center><img src=$value ></td>";
// if <td> count = number of columns set earlier then start a new row
if ($count % $cols == 0) { echo "</tr><tr>"; }
}
echo "</td></tr></table>";
?>
and i would like to make it so my table isn't OBNOXIOUSLY sized like my pictures. ...my questions is, without manually changing the size of each picture individually, how do i code into this to make each picture/table box size smaller....?
<?php
// set the folder variable
$folder = "Pics";
// read the images into an array
$filearray = glob("$folder/*.{jpg}", GLOB_BRACE) ;
$cols = 3; // how many columns do we want in our table
$count = 0; // start count
echo "<table bgcolor=#50007C border=1 cellpadding=15 align=center >
<tr>
<td colspan=$cols> My Pictures </td>
</tr>
<tr>
";
foreach ($filearray as $key => $value) {
$count++; // add 1 to the counter each time we loop
// make a new <td> for each item in array
echo "<td align=center><img src=$value ></td>";
// if <td> count = number of columns set earlier then start a new row
if ($count % $cols == 0) { echo "</tr><tr>"; }
}
echo "</td></tr></table>";
?>
and i would like to make it so my table isn't OBNOXIOUSLY sized like my pictures. ...my questions is, without manually changing the size of each picture individually, how do i code into this to make each picture/table box size smaller....?