View Single Post
Old 12-02-2001, 12:08 PM  
JackFoley
Confirmed User
 
Join Date: Jul 2001
Location: Pac-land
Posts: 858
I use this on one of my sites for weekly updates. It might not be the most efficient way, but it works.

<?php
$day = date("d");
$month = date("m");
$year = date("Y");
$next = date("F jS, Y", mktime(0,0,0,$month,$day+5-date("w",mktime(0,0,0,$month,$day,$year)),$year));
echo("Next set will be added $next.");
?>

Ack. Make sure the $next line doesn't wrap (it should all be on one line).

------------------
SlutBunnies - $30/sale, bitch.

[This message has been edited by JackFoley (edited 12-02-2001).]
JackFoley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote