failed to import php write_data file in phpmyadmin database need some help....!!

check the manual that corresponds to your MariaDB server version for the right syntax to use near '<?php

Pay particular attention to the fact that the tag to start a PHP script is NOT <?php.