[PHP] 2 dates, difference in days AARGH!!

2002-12-11 Thread Curtis Gordon
HI! I have two dates, one in the future, and the current date, I want to calculate the difference between the two in # of days. I have converted both dates to seconds: future date: current date: Then I found the difference between the two: Now I want to convert the difference to "days": (

Re: [PHP] 2 dates, difference in days AARGH!!

2002-12-11 Thread Curtis Gordon
d, my hairline, my marriage, and my sanity! Chris Wesley wrote: Oh, and $today['wday'] ... that's the day of the week. I'm almost positive you want the day of the month: $today['mday']. hth, ~Chris On Wed, 11 Dec 2002, Chris Wesley wrote: On We

Re: [PHP] export data to text file

2002-09-28 Thread Curtis Gordon
Why not write to a file on the server and generate a link to it? Collect info > write file > user downloads file Curtis Diana Castillo wrote: >okay, how can I write a file in csv format either to the browser or to the >server? If I use the Mysqladmin page I get all the fields, I just want some

Re: [PHP] Creating pop-up window and passing variable to it?

2002-06-04 Thread Curtis Gordon
This is how I do it. I fire a javascript when the link is clicked, which in turn submits a form targetting the page you openned (named of course). function donewpage(){ open window named "mywindow" submit form targetting "mywindow" blah blah blah } sorry to be so brief but the hockey