[PHP-DB] Re: Date question

2006-03-13 Thread Gerry Danen
Thanks for all the help, guys. I'm back up, but a lot of my cool tricks are gone. Gotta get a better backup plan... Gerry On 3/12/06, Gerry Danen <[EMAIL PROTECTED]> wrote: > > While I am rebuilding my crashed laptop (the machine that had all my > intelligence), I started thinking about a select

Re: [PHP-DB] Re: Date Question

2003-02-19 Thread Chris Payne
Hi there, Thanks for your help, it is VERY appreciated :-) Regards Chris > [EMAIL PROTECTED] (Chris Payne) writes: > > I have the following 2 dates (FOr example): > > 19-02-2003 > > 21-02-2003 > > How can I easily find out how many nights there are between the 2 > > dates? For example, the ab

[PHP-DB] Re: Date Question

2003-02-19 Thread Fredrik de Vibe
[EMAIL PROTECTED] (Chris Payne) writes: > I have the following 2 dates (FOr example): > 19-02-2003 > 21-02-2003 > How can I easily find out how many nights there are between the 2 > dates? For example, the above would be 2 nights as the 21st would be > the checkout date. I guess this will work:

[PHP-DB] Re: Date Question

2002-04-04 Thread Ron Allen
Steve is right you can do it that way, but I would put in the area where you insert the information into the database. Either way is correct. but I find this way easier and you don't take up any area on your from. (preferences) @mysql_select_db("$DBName") or die("Unable to select database $DBName

[PHP-DB] Re: Date Question

2002-04-03 Thread Steve
One way you can do that is create a local variable and have that variable referenced in your form in either a hidden field or a text field. EXAMPLE $date = date("l F d, Y") (outputted that would be say Thursday April 4, 2002) then your field would look something like this depending how you wri