stupid problem
Posted: Fri Jul 15, 2005 7:32 am
this really is not a big deal at all but i cant seam to figure it out. what i want is for there to be a table with 4 < td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.
eam to figure it out. what i want is for there to be a table with 4 < td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.
mp;amp; strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
&ar there to be a table with 4 < td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.
amp;& strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
he code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.
nt seam to figure it out. what i want is for there to be a table with 4 < td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.
Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
$i=0;
}
}
}
?>
</tr>
</table>Code: Select all
<table border="e;0"e;>
<tr>
<?
$dir = opendir('./users/'.$_SESSIONї'username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td> there to be a table with 4 < td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="e;0"e;>
<tr>
<?
$dir = opendir('./users/'.$_SESSIONї'username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>n the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="e;0"e;>
<tr>
<?
$dir = opendir('./users/'.$_SESSIONї'username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</alt; td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/&a a big deal at all but i cant seam to figure it out. what i want is for there to be a table with 4 < td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="e;0"e;>
<tr>
<?
$dir = opendir('./users/'.$_SESSIONї'username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
$i=0;
}
}
}
?>
</tr&am a big deal at all but i cant seam to figure it out. what i want is for there to be a table with 4 < td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
&le = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
$i=0;
}
}
}
?>
</tr>
</table>{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
&ar there to be a table with 4 < td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.
Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img ith 4 < td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSIONї'username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a hreigure it out. what i want is for there to be a table with 4 < td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSIONї'username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSIONї'username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
$i=0;
}
}
}
?>
&at wrong.Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
&t all but i cant seam to figure it out. what i want is for there to be a table with 4 < td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSIONost one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
$i=0;
}
}
}
?>
</tr>
</table&c6207]
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
$i=0;
}
}
}
?>
</tr>
</table>{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
he code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.
Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSIONї'username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=&i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
a big deal at all but i cant seam to figure it out. what i want is for there to be a table with 4 < td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="e;0"e;>
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&mp;quote;>
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td& seam to figure it out. what i want is for there to be a table with 4 < td > 's in the < tr > (i cant remember what is a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="e;0"e;>
<tr>
<?
$dir = opendir('./users/'.$_SESSIONї'username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
$i=0;
}
}
}
?>
</tr&amis a row and what is a col). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="25%" align="center">
<a href="./users/<?= $_SESSION['username'] ?>/<?= $file ?>" target="_blank">
<img src="./users/<?= $_SESSION['username'] ?>/<?= $file ?>.thumbnail"></a>
<br>
<a href="index2.php?u=profile&op=del&pic=<?= $_SESSION['username'].'/'.$file ?>">Delete</a>
</td>
<?
$i=0;
}
}
}
?>
</tr>
</table>Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSIONї'username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a&ar every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>l). the code i have works for every row(?) but the first one where it only shows 3 pictures but the rest show 4. here is my code maybe u will see where i went wrong.Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSIONї'username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
$i=0;
}
}
}
?>
p;amp;gt;
<tr>
<?
$dir = opendir('./users/'.$_SESSIONї'username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
<br>
<a href="e;index2.php?u=profile&op=del&pic=<?= $_SESSIONї'username'].'/'.$file ?>"e;>Delete</a>
</td>
<?
}
else
{
?>
</tr>
<tr>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>.thumbnail"e;></a>
&are i went wrong.Code: Select all
<table border="0">
<tr>
<?
$dir = opendir('./users/'.$_SESSION['username'].'');
$i=0;
while (false !== ($file = readdir($dir)))
{
if ($file != '.' && $file != '..' && strpos($file, '.thumbnail') === false && strpos($file, '.featured') === false && strpos($file, '.center') === false)
{
$i++;
if ($i < 4)
{
?>
<td width="e;25%"e; align="e;center"e;>
<a href="e;./users/<?= $_SESSIONї'username'] ?>/<?= $file ?>"e; target="e;_blank"e;>
<img src="e;./users/<?= $_SESSIONї'username']