Jim Lucas wrote:
Ron Piggott wrote:
I am wanting to change
echo " 'January', '2' => 'February', '3' => 'March', '4'
=> 'April', '5' => 'May', '6' => 'June', '7' => 'July', '8' => 'August',
'9' => 'September', '10' => 'October', '11' => 'November', '12' =>
'December');
$current_month =
Ron Piggott wrote:
I am wanting to change
echo " 'January', '2' => 'February', '3' => 'March', '4'
=> 'April', '5' => 'May', '6' => 'June', '7' => 'July', '8' => 'August',
'9' => 'September', '10' => 'October', '11' => 'November', '12' =>
'December');
$current_month = DATE("n");
echo
On 5/10/08, Ron Piggott <[EMAIL PROTECTED]> wrote:
> I am wanting to change
>
> echo "
> to output the month number, between 01 and 12 --- DATE value m, the
> month with leading 0's. How do I do this? $months is an array, as I
> have shown below. Ron
>
>$months = array('1' => 'Ja
> for ($i = 1; $i >= 12; $i++)
I'm an idiot.
for ($i = 1; $i <= 12; $i++)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2008/5/10 Ron Piggott <[EMAIL PROTECTED]>:
> I am wanting to change
>
> echo "
> to output the month number, between 01 and 12 --- DATE value m, the
> month with leading 0's. How do I do this? $months is an array, as I
> have shown below. Ron
>
> $months = array('1' => 'January', '2' =>
I am wanting to change
echo " 'January', '2' => 'February', '3' => 'March', '4'
=> 'April', '5' => 'May', '6' => 'June', '7' => 'July', '8' => 'August',
'9' => 'September', '10' => 'October', '11' => 'November', '12' =>
'December');
$current_month = DATE("n");
echo "\r\n";
foreach (ra
PROTECTED]> wrote:
>>
>> > -Original Message-
>> > From: Dan Shirah [mailto:[EMAIL PROTECTED]
>> > Sent: Monday, February 19, 2007 2:08 PM
>> > To: Brad Fuller
>> > Cc: Jay Blanchard; php-general
>> >
gt;
On 2/19/07, Brad Fuller <[EMAIL PROTECTED]> wrote:
> -Original Message-
> From: Dan Shirah [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 19, 2007 2:08 PM
> To: Brad Fuller
> Cc: Jay Blanchard; php-general
> Subject: Re: [PHP] Month
>
> Okay, when I tr
ssage-
> From: Dan Shirah [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 19, 2007 2:08 PM
> To: Brad Fuller
> Cc: Jay Blanchard; php-general
> Subject: Re: [PHP] Month
>
> Okay, when I try the sprintf I get the following error when I try to
save
> my
> form
>
> I
er <[EMAIL PROTECTED]> wrote:
> -Original Message-
> From: Dan Shirah [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 19, 2007 1:44 PM
> To: Jay Blanchard
> Cc: php-general
> Subject: Re: [PHP] Month
>
> Okay, so sprintf("%02s", $m) means that the value
itional {"}
echo "$months";
-B
}
?>
On 2/19/07, Brad Fuller <[EMAIL PROTECTED]> wrote:
> -Original Message-
> From: Dan Shirah [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 19, 2007 1:44 PM
> To: Jay Blanchard
> Cc: php-general
> S
> -Original Message-
> From: Dan Shirah [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 19, 2007 2:08 PM
> To: Brad Fuller
> Cc: Jay Blanchard; php-general
> Subject: Re: [PHP] Month
>
> Okay, when I try the sprintf I get the following error when I
D]
> Sent: Monday, February 19, 2007 1:44 PM
> To: Jay Blanchard
> Cc: php-general
> Subject: Re: [PHP] Month
>
> Okay, so sprintf("%02s", $m) means that the value of $m would be checked
> for
> the amount of digits returned. If less than two digits a zero would be
&g
> -Original Message-
> From: Dan Shirah [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 19, 2007 1:44 PM
> To: Jay Blanchard
> Cc: php-general
> Subject: Re: [PHP] Month
>
> Okay, so sprintf("%02s", $m) means that the value of $m would be checked
>
Okay, so sprintf("%02s", $m) means that the value of $m would be checked for
the amount of digits returned. If less than two digits a zero would be
added to the front, correct?
On 2/19/07, Jay Blanchard <[EMAIL PROTECTED]> wrote:
[snip]
If I change my date value to m instead of M, that would o
[snip]
If I change my date value to m instead of M, that would only affect the
visual month representation that they see, and not the "selected" value
that I want to input into my database thoughright?
[/snip]
Do a combination.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
> -Original Message-
> From: Dan Shirah [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 19, 2007 1:27 PM
> To: php-general
> Subject: [PHP] Month
>
> Greetings,
>
> I have the following code which populates a dropdown box so a user can
> select a month
If I change my date value to m instead of M, that would only affect the
visual month representation that they see, and not the "selected" value that
I want to input into my database thoughright?
On 2/19/07, Jay Blanchard <[EMAIL PROTECTED]> wrote:
[snip]
I have the following code which popu
Dan Shirah wrote:
Greetings,
I have the following code which populates a dropdown box so a user can
select a month. They see the month name and the SELECTED value is the
corresponding numeric value 1-12 for the month. However, the selected
value for January would be 1. I need the selected v
[snip]
I have the following code which populates a dropdown box so a user can
select a month. They see the month name and the SELECTED value is the
corresponding numeric value 1-12 for the month. However, the selected
value for January would be 1. I need the selected value fro January to
be
01
Greetings,
I have the following code which populates a dropdown box so a user can
select a month. They see the month name and the SELECTED value is the
corresponding numeric value 1-12 for the month. However, the selected
value for January would be 1. I need the selected value fro January to
On Sat, Jan 20, 2007 at 12:37:08AM +0800, Denis L. Menezes wrote:
> Dear friends.
>
> Can anyone please show me calendar scripts to make a calendar with a monthly
> display as shown in http://www.easyphpcalendar.com/ ?
>
> Thanks
> Denis
>
> --
> PHP General Mailing List (http://www.php.net/
[snip]
Can anyone please show me calendar scripts to make a calendar with a
monthly
display as shown in http://www.easyphpcalendar.com/ ?
[/snip]
Have you STFW or RTFM? There is a truckload of PHP code on the web that
you can review, dissect, and learn from.
--
PHP General Mailing List (http:
Dear friends.
Can anyone please show me calendar scripts to make a calendar with a monthly
display as shown in http://www.easyphpcalendar.com/ ?
Thanks
Denis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://www.php.net/manual/en/function.strtotime.php
http://www.php.net/manual/en/function.date.php
On 10/16/06, Ron Piggott (PHP) <[EMAIL PROTECTED]> wrote:
Is there a way I am able to use the DATE command to convert January to
1, February to 2, etc.
--
GMail Rocks!!!
Ron Piggott (PHP) wrote:
>Is there a way I am able to use the DATE command to convert January to
>1, February to 2, etc.
>
>
>
What is wrong with date()?
www.php.net/date
$month = 'Jan';
$numericMonth = date('m', strtotime("$month 01 2000");
Travis Doherty
--
PHP General Mailing List (http:/
Is there a way I am able to use the DATE command to convert January to
1, February to 2, etc.
rber
Visit http://www.weberdev.com/ Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: cavagnaro [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 8:31 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Month name
How can I get the month name from a date? If you could post with an
date("F", mktime(0, 0, 0, $mm, $dd, $));
http://au2.php.net/manual/en/function.date.php
http://au2.php.net/manual/en/function.mktime.php
-Original Message-
From: cavagnaro [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 25 June 2003 4:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP]
:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 8:31 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Month name
How can I get the month name from a date? If you could post with an
example i'll be gratefull
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
How can I get the month name from a date? If you could post with an example
i'll be gratefull
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 2003-06-19 at 12:57, drparker wrote:
> Is there any way I could loop thru and print all the month names (i.e.
> January, February)?
--
Tyler Lane <[EMAIL PROTECTED]>
signature.asc
Description: This is a digitally signed message part
that's what I'm looking for - thanks.
David Nicholson wrote:
> Hello,
>
> This is a reply to an e-mail that you wrote on Thu, 19 Jun 2003 at 20:58,
> lines prefixed by '>' were originally written by you.
>
> > Is there any way I could loop thru and print all the month names (i.e.
> > January, Feb
Hi,
> Is there any way I could loop thru and print all the month names (i.e.
> January, February)?
I suppose you could do something like:
for ($i = 1; $1 >= 12; $i++) {
echo date("F", mktime(0, 0, 0, $i, 1, 2003)) . "";
}
Unless you just want to m
Hello,
This is a reply to an e-mail that you wrote on Thu, 19 Jun 2003 at 20:58,
lines prefixed by '>' were originally written by you.
> Is there any way I could loop thru and print all the month names (i.e.
> January, February)?
for($i=1;$i<13;$i++){
echo date("F",mktime(0,0,0,$i,1,1));
}
> Is there any way I could loop thru and print all the month names (i.e.
> January, February)?
Just make an array and loop through the array. You know the rest of the
names, right? :)
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
Is there any way I could loop thru and print all the month names (i.e.
January, February)?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
on 01/04/03 10:31 PM, Jason Wong ([EMAIL PROTECTED]) wrote:
> I don't want to be awkward, but wouldn't $m be holding the required info
> already? -- ignoring the fact that you have an invalid date.
yes. I just re-read the OP... *slaps forehead*.
Justin
--
PHP General Mailing List (http://w
On Tuesday 01 April 2003 17:49, Justin French wrote:
> on 01/04/03 9:16 PM, Diana Castillo ([EMAIL PROTECTED]) wrote:
> > how do you get just the month (in numeric format ) of a specific date.
> > (not today)
> > same for day and year. The date is in -dd-mm format to start with.
> > thanks.
>
on 01/04/03 9:16 PM, Diana Castillo ([EMAIL PROTECTED]) wrote:
> how do you get just the month (in numeric format ) of a specific date. (not
> today)
> same for day and year. The date is in -dd-mm format to start with.
> thanks.
If your date was -mm-dd, you could do this:
But, because
At 12:16 1-4-03, you wrote:
how do you get just the month (in numeric format ) of a specific date. (not
today)
same for day and year. The date is in -dd-mm format to start with.
thanks.
if you obtain it directly you should try to alter the way you get the date.
If it is from e.g. a database o
how do you get just the month (in numeric format ) of a specific date. (not
today)
same for day and year. The date is in -dd-mm format to start with.
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What are you trying to accomplish over all?
---John Holmes...
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 29, 2002 11:37 PM
Subject: [PHP] Month Values in UNIX timestamps and workaround(Newbie)
I began to write a function that
I began to write a function that correctly diveded
up the months into their correct UNIX timestamps and wrote content from a
database accordingly.
I have had an idea that maybe eaiser to implement
but slower. Could one or two people tell me what the think and if it is a good
idea. I am als
44 matches
Mail list logo