Hi, not sure if I should be posting this in the newbies forum as it seems very complicated, but then again I'm a newbie so I guess it would be complicated.
What I want to be able to do is show some articles on a set day, and then show links to the last six days.
ie:
Today Thursday (05/12/2002)
Todays news... blah blah blah
see news from weds,tues,mon,sun,sat,fri... these will each have a separate link going to a page which will show the news from that specific day. Note that I want to show the days and not the dates, therefore yesterday is wednesday, but tomorrow I would like yesterday to be Thursday? I've probably lost you nowbut it's quite hard to explain!
No one at my work experience place can help me with this, although they told me to look at this:
<? function datefr($MyDate, $WeekDayOn=1, $YearOn=0) {
$MyMonths = array("Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre");
$MyDays = array("Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi");
$DF = explode('-',$MyDate);
$TheDay = getdate(mktime(0,0,0,$DF[1],$DF[2],$DF[0]));
$MyDate = $DF[2]." ".$MyMonths[$DF[1]-1];
if ($WeekDayOn) $MyDate=$MyDays[$TheDay["wday"]]." ".$MyDate;
if ($YearOn) $MyDate.=" ".$DF[0];
return $MyDate;
}
?>
If anyone has an idea as to what the function does, can explain it, suggest how I should use it to do what I want to do or even suggest a good article which is easy for beginners to understand then I would be really grateful. I've tried reading up on the date function etc and have spent all day doing that but it just all seems like a foreign language to me! Any help would be much appreciated.
Sharon[/code]