RSDocAttatches(); while($oDatt->GetRecord()){ $pathfile="../documents/".$oDatt->DaUpFileName; ?> echo " ".$c.". ".$oDatt->DaFileName.""; } ?>