1) I've tried a few options from the manual to expand date field from say, 2006-02-02 to Thurs, 02.02.2006 format but i cannot figure out where i am going wrong. Code below.
2) This is a monthly roll call so Sundays dont get recorded in the table. Is there a way I can have the Sunday getting printed on the output ?
3) This code currently shows up on screen as :
[QUOTE] Date | Time | IP | Note
29.01.06 |07:25:40 | aaa.bb.cc.dd | abcde
31.01.06 |07:00:00 | aaa.bb.cc.dd | [/QUOTE]
What I want
[QUOTE]Date | Time | IP | Note
Sat, 29.01.06 |07:25:40 | aaa.bb.cc.dd | abcde
Sun, 30.01.06 |
Mon, 31.01.06 |07:10:00 | aaa.bb.cc.dd | [/QUOTE]
Could someone pl help ? Thanks.
$sql1 = "SELECT * FROM `Roll` WHERE `user`='$user' && Month(`date`)= $month && Year(`date`)= '$year' ORDER BY `date` asc ";
$result1 = mysql_query($sql1)
or die ("Unable to get results.");
if ($myrow1 = mysql_fetch_array($result1))
{
do
{
list ($ayear, $amonth, $adate, $aday) = explode ("-" , $date) ; // doesnt work
printf("<tr>
<td> %s </td>
<td> %s </td>
<td> %s </td>
<td> %s </td>
</tr>",
calculatedate($myrow1["date"]), // This gives 31.01.06
// DateConvert($myrow1["date"], "D, m.d.Y") , // This gives a blank screen
//$aday. "," $adate ."-" $amonth."-".$ayear , // This gives a blank screen
and so on for the rest of the code