updated getExtraDetails.php to mysqli