Comment out the entire echo in the loop. Add this instead and post the results you get (drag it from source to keep it formatted):
PHP Code:
$i = 0;
while($result=sqlsrv_fetch_array($resource))
{
print str_pad('[Start ' . $i . ']', 30, '-', STR_PAD_BOTH) . PHP_EOL;
var_dump($result['DateEntered'], $result['DateUpdated']);
print str_pad('[End ' . $i++ . ']', 30, '-', STR_PAD_BOTH) . PHP_EOL . PHP_EOL;
// your commented out code would be here.
}