Update doData.php

Updated with working code