I'm trying to get the query to show all of the rows, but all its doing is just duplicating the first row of data.

PHP Code:
if (file_exists($dir) == false
{
echo 
'Folder \''$dir'\' not found!';
} else {
$dir_contents scandir($dir);

foreach (
$dir_contents as $file
{
    
$file_type strtolower(end(explode('.'$file)));
    
    if (
$file !== '.' && $file !== '..' && in_array($file_type$file_display) == true
    {
        
$animeimg '<img src="' $dir '/' $file '" alt="' $file '" width="80px;" height="100px" />';
        
        
$sql "SELECT image, name, description FROM phpbb_anime";
        
$result $db->sql_query($sql);
        
$row $db->sql_fetchrow($result);
        while (
$numrow mysql_fetch_array($result)) {
            
$animename $row['name'];
            
$animedesc $row['description'];
            
$animeimg $row['image'];
            }
        
        
$template->assign_block_vars('anime', array(
            
'ANIME_NAME'           => $row['name'],
            
'ANIME_DESC'         => $row['description'],
            
'ANIME_IMG'            => $animeimg,
            
           ));
    }
}