Hey below this i pasted my image gallery code.
The only problem is it sorts all the imagtes out the map on date of changed.
But i want it to be sorted on name instead of date of change.
So maybe there is someone who can help me with this problem.
<?
// Configuratie
$naam = "Luck Site 1";
$woord="index.php"; // naam vd php file
$path = "$categorie"; // dir waar foto's in staan
$title = "$naam's Page ". ($page + 1);
$header = "<p>$categorie</p>"; // header, dit staat boven de plaatjes.
// Configuratie
$clm = "6"; // Aantal kolommen
$rows = "6"; // aantal rijen
$t_w = "100";
$t_h = "75";
?>
<html>
<head>
<title><? echo $title; ?></title>
<link rel="stylesheet" href="style.css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor='#E8CFF4' background="stuc4.gif" leftmargin='0' topmargin='0' bgimage="stuc4.gif" >
<div align="center"><font size='3' align='center'>
<?
if(isset($categorie)){
echo $header;
echo "<br><br><center><p><b>$title</b></p><br><br>";
$min = (1+($page * 24));
$max = (($page +1) * 24);
$number = $clm * $rows;
$break = (($page * 24) + $clm);
echo "<table border=0 cellpadding=10 cellspacing=4><tr>";
$d = dir("$path");
$count = -2;
while($entry=$d->read()) {
if (($count >= $min) AND ($count <= $max)){
if(eregi(".jpg|.jpeg|.gif|.png", $entry)){
$pic = explode(".",$entry);
$pic2 = explode("_",$pic[0]);
ClearStatCache();
$size = GetImageSize("$path/$entry");
$size[0] = $size[0] + 20;
$size[1] = $size[1] + 25;
$file_size=fileSize("$path/$entry");
$file_size = round($file_size / 1000) . "k";
echo("<td width='75' valign='top' height='150'><a href=\"#\"
onmouseover=\"window.status='Vergroten';return true;\"
onmouseout=\"window.status='';return true;\"
onclick=\"window.open('$path/$entry','pix$count','width=370,height=290,innerwidth=$size[0],innerheight=$size[1],directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,top=0,left=0,leftmargin=0,topmargin=0,marginwidth=0,marginheight=0,screenX=0,screenY=0');return false\"><img src=$path/");
echo $entry." border=0 alt=$count height=$t_h></a> <br><font size='3' color='#9370DB' align='center'><b>$pic2[0] $pic2[1] $pic2[2] $pic2[3] $pic2[4] $pic2[5] $pic2[6] $pic2[7]</b></font></td>"; // width=$t_w
}
if ($count == $break){
echo "</tr><tr>";
$break = $count + $clm ;
}
}
$count++;
}
$d->close();
echo "</tr></table>";
$pages = ($count / 25);
$pageplus = ($page + 1);
$pagemin = ($page - 1);
if (($page + 1) < $pages){
$volgende = " | <a href=$woord?page=$pageplus&categorie=$categorie>Volgende pagina</a> |";
}
if (($page+1) > "1"){
$vorige = "| <a href=$woord?page=$pagemin&categorie=$categorie>Vorige pagina</a> |";
}
// Footer, dit staat onder de plaatjes.
echo "<br><Zet hier je eigen tekst neer<br>|<a href='http://members.lycos.nl/luckwilma/luck.html'> Home </a>| $vorige $volgende";
}else{
echo("<a href='index.php?categorie=teddies'>Teddies</a><br>");
echo("<a href='index.php?categorie=mcdonalds'>Mc Donald</a><br>");
}
?>
</font> </div>
</body>
</html>
Hope to hear from anyone soon.
Thanks in advanced,
Robbin