zrobilem cos takiego niby to dziala ale czy sa tu jakies wady chce sie spytac bo wazny jest dla mnie ten skrypt wiec musi byc dokladny i bez bledow...
Kod
$dzisiaj = getdate();
$week = $dzisiaj['weekday'];
if ($week=="Monday") {$asd=2;}
if ($week=="Tuesday") {$asd=1;}
if ($week=="Wednesday") {$asd=7;}
if ($week=="Thursday") {$asd=6;}
if ($week=="Friday") {$asd=5;}
if ($week=="Saturday") {$asd=4;}
if ($week=="Sunday") {$asd=3;}
$data = date('Y-m-d');
$dni = $asd;
$data = strtotime($data);
$data = $data + $dni * 24 * 3600;
$data_meczu = date('Y-m-d',$data);
print $data_meczu;
$week = $dzisiaj['weekday'];
if ($week=="Monday") {$asd=2;}
if ($week=="Tuesday") {$asd=1;}
if ($week=="Wednesday") {$asd=7;}
if ($week=="Thursday") {$asd=6;}
if ($week=="Friday") {$asd=5;}
if ($week=="Saturday") {$asd=4;}
if ($week=="Sunday") {$asd=3;}
$data = date('Y-m-d');
$dni = $asd;
$data = strtotime($data);
$data = $data + $dni * 24 * 3600;
$data_meczu = date('Y-m-d',$data);
print $data_meczu;