<?php $plik = Date('YmdHis'); include('config.php'); $obj = new Admin(); foreach ($_POST['data'] as $val){ $obj->UsunZBazy($val); } ?>