Re: [PHP] Date math

2008-03-25 Thread Ron Piggott
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

[PHP] Date math

2008-03-23 Thread Ron Piggott
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

Re: [PHP] Calculating dates

2008-03-01 Thread Ron Piggott
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 > > > >

[PHP] Calculating dates

2008-02-29 Thread Ron Piggott
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

[PHP] Ajax, an HTML form being saved in mySQL

2008-02-10 Thread Ron Piggott
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

[PHP] PHP variable values

2008-02-10 Thread Ron Piggott
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

Re: [PHP] strtotime

2008-02-10 Thread Ron Piggott
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

[PHP] strtotime

2008-02-10 Thread Ron Piggott
I figured out what went wrong. Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: strtotime

2008-02-10 Thread Ron Piggott
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

[PHP] strtotime

2008-02-10 Thread Ron Piggott
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

[PHP] Resetting a session variable

2008-02-03 Thread Ron Piggott
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

Re: [PHP] " using the mail() command

2008-02-02 Thread Ron Piggott
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

[PHP] " using the mail() command

2008-02-02 Thread Ron Piggott
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

[PHP] Uploading a file through PHP form

2007-12-13 Thread Ron Piggott
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

[PHP] text to HTML

2007-08-26 Thread Ron Piggott
Is there a PHP command that turns text into HTML? EXAMPLE: "before" Hi. How are you doing? "after" Hi. How are you doing?

[PHP] Date

2007-06-20 Thread Ron Piggott
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 = ;

[PHP] Date

2007-06-18 Thread Ron Piggott
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

[PHP] IF loop

2007-04-10 Thread Ron Piggott
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 -

Re: [PHP] DATE

2007-01-28 Thread Ron Piggott
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

[PHP] DATE

2007-01-27 Thread Ron Piggott
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

[PHP] Network Time Protocol

2007-01-22 Thread Ron Piggott
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

[PHP] image commands (again)

2006-11-05 Thread Ron Piggott (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

[PHP] imageloadfont

2006-11-05 Thread Ron Piggott (PHP)
How do you make .gdf files for use with imageloadfont ? Ron

[PHP] imagejpeg

2006-11-04 Thread Ron Piggott (PHP)
Is there a way to specify a font when using imagejpeg ? Ron

[PHP] Form verification

2006-11-01 Thread Ron Piggott (PHP)
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

[PHP]

2006-10-25 Thread Ron Piggott (PHP)
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

[PHP] strtotime

2006-10-24 Thread Ron Piggott (PHP)
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

[PHP] Date calculation

2006-10-15 Thread Ron Piggott (PHP)
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

[PHP] Month in a numeric form

2006-10-15 Thread Ron Piggott (PHP)
Is there a way I am able to use the DATE command to convert January to 1, February to 2, etc.

[PHP] Date verification

2006-10-09 Thread Ron Piggott (PHP)
Is there a PHP function which verifies a valid date has been entered (-MM-DD)? Ron

[PHP] Uploading files / processing with a PHP script

2006-10-08 Thread Ron Piggott (PHP)
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

[PHP] ECHO $variable

2006-10-07 Thread Ron Piggott (PHP)
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

[PHP] Re: [PHP-DB] auto_increment and INSERT INTO

2006-01-21 Thread Ron Piggott (PHP)
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

<    1   2