Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #1718

Re: problem saving date fields

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: problem saving date fields
Date 2011-05-20 22:30 -0400
Organization A noiseless patient Spider
Message-ID <ir7846$2lp$1@dont-email.me> (permalink)
References <a4c77f08-fffc-48e6-a19c-ee39b43bbc62@glegroupsg2000goo.googlegroups.com> <ir6pm4$nll$1@dont-email.me> <3f4554b4-3081-4ad3-a60d-a5ec086123a7@cu4g2000vbb.googlegroups.com>

Show all headers | View raw


On 5/20/2011 6:52 PM, Co wrote:
> On 21 mei, 00:24, Jerry Stuckle<jstuck...@attglobal.net>  wrote:
>> On 5/20/2011 5:00 PM, Co wrote:
>>
>>> I get a "1" as result.
>>> Don't know what you mean with this.
>>> Problem is that the date is set to 00-00-0000.
>>> Is that because there is a default set in the field (00-00-0000)?
>>
>>> Marco
>>
>> As a result for what?  There's no thread here.
>>
>> Please use REPLY to a message, not start a new thread.  And quote the
>> appropriate parts of the message, to maintain continuity.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
>
> Luuks thought:
> print $sql;
>
> it returns 1, dont know what I should do with it.
> Problem is that if I only change one of the dates:
> arrival_date='$arrival_date',departure_date='$departure_date'
>
> the other one gets to be the default value 00-00-0000.
>
> Marco

But what do you get on your window when you display the sql statement 
like he suggested?

Generally, when you're having troubles with SQL statements, it's best to 
print (or echo) the statement to the display to see if you actually have 
what you think you have.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: problem saving date fields Co <vonclausowitz@gmail.com> - 2011-05-20 14:00 -0700
  Re: problem saving date fields Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-20 18:24 -0400
    Re: problem saving date fields Co <vonclausowitz@gmail.com> - 2011-05-20 15:52 -0700
      Re: problem saving date fields Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-20 22:30 -0400
      Re: problem saving date fields Luuk <Luuk@invalid.lan> - 2011-05-21 09:57 +0200
        Re: problem saving date fields Co <vonclausowitz@gmail.com> - 2011-05-21 01:34 -0700
          Re: problem saving date fields Luuk <Luuk@invalid.lan> - 2011-05-21 11:29 +0200
            Re: problem saving date fields Co <vonclausowitz@gmail.com> - 2011-05-21 05:12 -0700
              Re: problem saving date fields Luuk <Luuk@invalid.lan> - 2011-05-21 15:46 +0200
                Re: problem saving date fields Luuk <Luuk@invalid.lan> - 2011-05-21 16:02 +0200
                Re: problem saving date fields Co <vonclausowitz@gmail.com> - 2011-05-21 07:09 -0700
                Re: problem saving date fields Luuk <Luuk@invalid.lan> - 2011-05-21 16:34 +0200

csiph-web