There are many mysql databases on the server. Some of them should be available only on certain days.
Is there a PHP command that can enable and disable access to certain databases so that access to these specific databases in the disabled state is only through " PHP My Admin "? Functions similar to these do not fit:
<?php if (date_format(date_create(), 'Ym-d') == '2015-07-17' or date_format(date_create(), 'Ym-d') == '2015-08-01') { die('Увы, нет доступа'); } else { mysql_connect(...); } // То есть например 17 июля или 1 августа, например