Update sample.php

fixed bug in sample.php