Could someone then help me modify the PHP script so I won't have this
timezone issue? I don't understand from looking at the date page on the
PHP web site the change(s) I need to make. Thanks, Ron
Ron Piggott wrote:
> > I have this math equation this list helped me generate
I have this math equation this list helped me generate a few weeks ago.
The purpose is to calculate how many days have passed between 2 dates.
Right now my output ($difference) is 93.958333 days.
I am finding this a little weird. Does anyone see anything wrong with
the way this is calcul
Thanks. That's a nifty way of doing this. Ron
On Fri, 2008-02-29 at 22:08 -0800, Jim Lucas wrote:
> Ron Piggott wrote:
> > Is there an easy way to calculate the number of days between two dates?
> >
> > Example: 2008-02-27 - 2007-12-03 = 86 days
> >
> >
Is there an easy way to calculate the number of days between two dates?
Example: 2008-02-27 - 2007-12-03 = 86 days
The dates will be in the format above -MM-DD
Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am trying to bring my programming skills together ... but I have hit a
road block.
I am writing my own ledger (accounting) software.
I am needing help to pass 2 variables generated by Ajax through my form
to be saved in a mySQL table.
A sample of what ledger_select_account.js outputs is as fo
What is the command which shows the value of all the variables in
memory? Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
00, Floor Terra wrote:
> On 2/10/08, Ron Piggott <[EMAIL PROTECTED]> wrote:
> > I figured out what went wrong. Ron
> >
> Care to share it with us?
>
> Floor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I figured out what went wrong. Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I see I broke a rule. The variable can't start with a number. Still
strtotime doesn't work with -18 months How would you handle this? Ron
On Sun, 2008-02-10 at 06:46 -0500, Ron Piggott wrote:
> I am trying to calculate what was the date 18 months ago. When I give
I am trying to calculate what was the date 18 months ago. When I give
the command:
$18_months_ago = strtotime("-18 months");
It comes back with:
Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE
How would you calculate 18 months ago from today?
Ron
--
PHP General Mailin
What is the command to reset a session variable --- essentially deleting
all of the values it contains? Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks for the new command and help. It worked! Ron
On Sat, 2008-02-02 at 19:46 -0500, Greg Bowser wrote:
> First off, I would use heredoc syntax so you don't need to escape the
> quotes:
>
> $message = << blah blah blah
> $your $stuff
> $here
> "
> '
> \ blah blah
>
> EOF;
>
> Also, since yo
When I use the mail($email, $subject, $message, $headers); command I
assign the value of $message as follows:
$boundary = md5(uniqid(time()));
$message = "
--$boundary
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
blah
--$boundary
Content-Type: text/html; charset
How do you upload a file using PHP? Also what is the web page which
describes the procedure on php.net ? Thanks, Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there a PHP command that turns text into HTML?
EXAMPLE:
"before"
Hi.
How are you doing?
"after"
Hi.
How are you doing?
How do I break $start_date into 3 variables --- 4 digit year, 2 digit
month and 2 digit day?
$start_year = ;
$start_month = ;
$start_day = ;
If
$expiry_date = "2007-10-17";
How do I add 7 days to this? I know the strtotime("+7 days"); command,
but don't know how to make it work with a date that isn't today.
(Please respond directly to my e-mail address)
Ron
Would someone help me tweak the IF statement below? I am trying to
assign a value to $seasonal_greeting on Good Friday, Saturday and Easter
Sunday.
We had added an extra day's worth of seconds to $Easter_Sunday wondering
if this is why it didn't work on Easter Sunday.
Where I am at today -
Someone sent me the strtotime function. This was the command I was
needing. Ron
On Sun, 2007-01-28 at 08:57 -0600, David Giragosian wrote:
> Ron Piggott wrote:
> > I have date in the variable $date_reference in the format
> -MM-DD.
> > How
I have date in the variable $date_reference in the format -MM-DD.
How do I find out the date before this and the date after this? Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Where could I get instructions to set up a network time protocol through
my web site hosting server? Ron
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I created a form that I have on my site --- it is at
http://www.actsministrieschristianevangelism.org/development_tools/textart/details.html
If I run this script it creates a graphic image of the text the user
typed in with the appropriate options selected
I would now like to have the image creat
How do you make .gdf files for use with imageloadfont ? Ron
Is there a way to specify a font when using imagejpeg ? Ron
I am wondering if any of you know what it is called when letters come up
for the user to key in for
form entry verification. Ron
I am creating a form right now. I am using the html SELECT tag.
The most number of days in a month is 31
I want the output to be ## based on the value of
$selected_day_of_month variable. For the days of the month where the
number is not selected the output I am desiring is
1
2
etc.
to be g
I have used the strtotime command to calculate a week ago (among other
things) with syntax like this:
$one_week_ago = strtotime("-7 days");
$one_week_ago = date('Y-m-d', $one_week_ago);
How would you use this command to figure out the last day of the month
in two months from now --- Today is Oct
I have one more date based question.
I have a month field ( $month ) and a day field ( $day ) being submitted
by a form.
I have a third field to be used as a date reminder for the information
which was submitted as part of the form. It is a reminder to complete a
task for the date was which was
Is there a way I am able to use the DATE command to convert January to
1, February to 2, etc.
Is there a PHP function which verifies a valid date has been entered
(-MM-DD)? Ron
When I upload a file into an application I am writing with the HTML form
command
and then give the PHP command
move_uploaded_file( $userfile , $destination_file_name);
the owner of the file is 'www'. Is there any way I am able to
automatically change the owner of the file to my FTP login iden
In one of my scripts I have
where
$saved_message_title is 1 Peter 5:7 "Cast all your cares on Him for He
cares about you"
--- note the "
When this is displayed on the screen $saved_message_title reads
1 Peter 5:7
I am assuming the " closes the value=
How may I echo this to the screen and
That is the function I was looking for. Thanks. Ron
On Sat, 2006-01-21 at 23:47 -0500, [EMAIL PROTECTED] wrote:
> Try:
>
>mysql_query("INSERT INTO table VALUES ('$variable_1', '$variable_2');");
> $auto_increment_variable = mysql_insert_id();
> ?>
>
>
> -TG
>
>
>
>
> = = = Original
101 - 133 of 133 matches
Mail list logo