Java Neil's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Active Members
Active Posts:
140 (0.11 per day)
Joined:
26-March 11
Profile Views:
2,559
Last Active:
User is offline Oct 01 2012 08:10 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   Java Neil has not set their status

Posts I've Made

  1. In Topic: Find the weekend dates in Calendar

    Posted 1 Oct 2012

    View PostCTphpnwb, on 01 October 2012 - 08:40 PM, said:

    Because 6 is true.
    Try:
        if ($day_of_week == 0 || $day_of_week == 6)
    
    


    See...I just learned something. Kudos to you. I mean it, you deserve it,
  2. In Topic: Find the weekend dates in Calendar

    Posted 1 Oct 2012

    Well I thought I had this logic for a second but I was sadly mistaken.

    for($day = 1; $day < 32; $day++) {
    	$date_time = strtotime($year.'/'.$month.'/'.$day);
    	$day_of_week = date("w",$date_time);
    	if ($day_of_week == 0 || 6)
    	echo $day_of_week." = ".$day_name[$day_of_week]."<br>";
    }
    


    This still printed out all the dates? Why did this not work.

    I have soooo much to learn!
  3. In Topic: Find the weekend dates in Calendar

    Posted 1 Oct 2012

    View PostCTphpnwb, on 01 October 2012 - 07:27 PM, said:

    Date() can return the day number, 0 - 6, starting with Sunday.


    Yes, I've been reading about this function, but I'm not sure how to implement it!

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

Comments

Java Neil has no profile comments yet. Why not say hello?