as I order the result to alphabetical order?
need it to read the directory and add the files in alphabetical order in mysql ...
$path = "artes110/$grupo";
$diretorio = opendir($path);
while ($arquivo = readdir($diretorio)){
if ($file != '.' && $file != '..')
{
$arquivo = utf8_encode($arquivo);
$arquivo = html_entity_decode($arquivo);
$query = mysql_query("INSERT INTO artes101 (imagem, data, texto, layout, grupo) VALUES ('$path/$arquivo', '$data2', '$texto', 'peq', '$grupo')") or die(mysql_error());
}
}